Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/facebook/CacheLib
/ functions
Functions
5,467 in github.com/facebook/CacheLib
⨍
Functions
5,467
◇
Types & classes
1,077
↓ 464 callers
Method
data
Return read-only start of the data
cachelib/navy/common/Buffer.h:157
↓ 403 callers
Function
makeHK
Convenience utils to convert a piece of buffer to a hashed key
cachelib/navy/common/Hash.h:34
↓ 388 callers
Method
size
cachelib/allocator/datastruct/DList.h:179
↓ 350 callers
Method
inc
cachelib/common/AtomicCounter.h:90
↓ 294 callers
Method
get
cachelib/datatype/Buffer.h:577
↓ 291 callers
Method
size
Return size in bytes for the data
cachelib/navy/common/Buffer.h:163
↓ 250 callers
Method
getMemory
cachelib/allocator/CacheItem.h:671
↓ 242 callers
Method
size
Return number of elements in this map
cachelib/datatype/Map.h:440
↓ 235 callers
Method
value
cachelib/navy/bighash/Bucket.cpp:42
↓ 218 callers
Method
find
cachelib/allocator/nvmcache/NvmCache.h:714
↓ 213 callers
Method
gen
cachelib/navy/testing/BufferGen.cpp:25
↓ 208 callers
Method
addPool
cachelib/allocator/memory/MemoryAllocator.cpp:117
↓ 206 callers
Method
key
cachelib/navy/block_cache/tests/BlockCacheTest.cpp:118
↓ 186 callers
Method
end
cachelib/allocator/datastruct/DList.h:449
↓ 186 callers
Method
get
cachelib/compact_cache/CCache.h:890
↓ 185 callers
Function
allocateAccessible
cachelib/allocator/Util.h:101
↓ 183 callers
Method
insert
cachelib/allocator/datastruct/SList.h:247
↓ 181 callers
Method
count
cachelib/cachebench/cache/ItemRecords.h:138
↓ 177 callers
Method
size
cachelib/cachebench/consistency/RingBuffer.h:85
↓ 177 callers
Method
view
return a mutable view where caller can read or modify data
cachelib/navy/bighash/BucketStorage.h:47
↓ 174 callers
Method
lookup
cachelib/navy/block_cache/BlockCache.cpp:471
↓ 169 callers
Function
makeView
Trailing 0 is not included
cachelib/navy/common/Buffer.h:254
↓ 165 callers
Method
view
Return a read-only view
cachelib/navy/common/Buffer.h:148
↓ 162 callers
Method
end
cachelib/datatype/Map.h:485
↓ 159 callers
Method
getCacheMemoryStats
cachelib/allocator/tests/CacheBaseTest.cpp:57
↓ 155 callers
Function
getCurrentTimeSec
::time is the fastest for getting the second granularity system clock through the vdso. This is faster than std::chrono::system_clock::now and countin
cachelib/common/Time.h:31
↓ 153 callers
Method
empty
cachelib/allocator/datastruct/SList.h:132
↓ 141 callers
Method
value
cachelib/navy/block_cache/tests/BlockCacheTest.cpp:120
↓ 140 callers
Function
ASSERT_THROW
cachelib/allocator/memory/tests/MemoryAllocatorTest.cpp:395
↓ 133 callers
Method
size
Approximate total number of entries. O(1), no locking. May be slightly stale under concurrent modifications due to relaxed memory ordering, but avoids
cachelib/allocator/nvmcache/AccessTimeMap.h:140
↓ 129 callers
Method
insert
cachelib/datatype/Map.h:680
↓ 128 callers
Function
strPiece
Helper utility that converts a c-style string to a StringPiece
cachelib/navy/testing/Callbacks.h:62
↓ 123 callers
Method
size
cachelib/allocator/MM2Q.h:515
↓ 122 callers
Method
join
cachelib/navy/scheduler/ThreadPoolJobScheduler.cpp:82
↓ 121 callers
Method
empty
cachelib/shm/ShmCommon.h:118
↓ 115 callers
Method
begin
cachelib/allocator/datastruct/DList.h:436
↓ 114 callers
Method
allocate
cachelib/allocator/memory/MemoryPool.cpp:307
↓ 110 callers
Method
begin
cachelib/datatype/Map.h:484
↓ 110 callers
Method
updateDelta
cachelib/allocator/CacheStats.cpp:474
↓ 106 callers
Method
getCurrentAllocSize
returns the current memory that is allocated in this memory pool.
cachelib/allocator/memory/MemoryPool.h:119
↓ 102 callers
Method
str
cachelib/common/Profiled.h:39
↓ 100 callers
Method
getPoolStats
cachelib/allocator/tests/CacheBaseTest.cpp:36
↓ 97 callers
Method
getPoolSize
the configured size of the pool.
cachelib/allocator/memory/MemoryPool.h:82
↓ 93 callers
Method
getKey
cachelib/allocator/tests/Cache.h:48
↓ 90 callers
Method
remove
cachelib/allocator/datastruct/DList.h:352
↓ 89 callers
Method
get
cachelib/allocator/Handle.h:174
↓ 86 callers
Method
size
cachelib/common/ApproxSplitSet.h:113
↓ 83 callers
Method
find
cachelib/datatype/Map.h:133
↓ 83 callers
Method
what
cachelib/common/Exceptions.h:52
↓ 82 callers
Method
allocate
returns memory of size, aligned to Slab::kSize
cachelib/allocator/memory/tests/TestBase.h:47
↓ 82 callers
Method
evict
cachelib/navy/block_cache/LruPolicy.cpp:66
↓ 79 callers
Method
get
cachelib/allocator/datastruct/DList.h:218
↓ 79 callers
Method
getSize
current size of the segment
cachelib/shm/Shm.h:144
↓ 78 callers
Method
erase
cachelib/datatype/Map.h:696
↓ 78 callers
Method
getKey
cachelib/allocator/CacheItem.h:659
↓ 77 callers
Method
allocate
cachelib/datatype/Buffer.h:514
↓ 75 callers
Method
insert
cachelib/navy/block_cache/BlockCache.cpp:282
↓ 74 callers
Method
get
Retrieve the timestamp for the given key hash without removing it.
cachelib/allocator/nvmcache/AccessTimeMap.h:96
↓ 73 callers
Method
insertOrReplace
cachelib/allocator/nvmcache/tests/NvmTestBase.h:80
↓ 72 callers
Method
clear
cachelib/common/BloomFilter.cpp:111
↓ 72 callers
Method
peek
cachelib/navy/block_cache/FixedSizeIndex.cpp:100
↓ 68 callers
Method
keyHash
cachelib/navy/bighash/Bucket.cpp:38
↓ 68 callers
Method
wait
cachelib/navy/testing/SeqPoints.cpp:49
↓ 67 callers
Method
insertOrReplace
cachelib/object_cache/ObjectCache.h:978
↓ 66 callers
Method
shutDown
cachelib/allocator/nvmcache/NvmCache.h:1705
↓ 64 callers
Method
add
adds an instance of key @param key key for the record @return a valid Guard representing the tombstone
cachelib/allocator/nvmcache/TombStones.h:43
↓ 64 callers
Function
createMemoryDevice
cachelib/navy/common/Device.cpp:1235
↓ 64 callers
Method
set
Store a timestamp for the given key hash. If inserting a new key causes the shard to exceed capacity, an arbitrary existing entry in the same shard is
cachelib/allocator/nvmcache/AccessTimeMap.h:73
↓ 63 callers
Method
hasValue
cachelib/cachebench/consistency/ValueHistory.cpp:89
↓ 63 callers
Function
makeAddr
cachelib/datatype/tests/RangeMapTest.cpp:32
↓ 63 callers
Method
updateCount
cachelib/allocator/CacheStats.cpp:480
↓ 62 callers
Function
throwSystemError
cachelib/common/Utils.h:357
↓ 60 callers
Method
allocateChainedItem
cachelib/allocator/CacheAllocator.h:3126
↓ 60 callers
Method
fillUpPoolUntilEvictions
cachelib/allocator/tests/TestBase.h:184
↓ 59 callers
Method
attachShm
cachelib/shm/ShmManager.cpp:365
↓ 59 callers
Method
getStats
cachelib/allocator/memory/MemoryPool.cpp:567
↓ 57 callers
Function
ASSERT_THROW
cachelib/shm/tests/test_shm_manager.cpp:332
↓ 57 callers
Method
createShm
cachelib/shm/ShmManager.cpp:289
↓ 57 callers
Method
insert
cachelib/navy/bighash/Bucket.cpp:73
↓ 57 callers
Method
lookup
cachelib/datatype/RangeMap.h:335
↓ 56 callers
Method
insertAsync
cachelib/navy/driver/Driver.cpp:180
↓ 55 callers
Method
close
cachelib/navy/block_cache/Region.cpp:150
↓ 55 callers
Method
currentHits
cachelib/navy/block_cache/Index.h:99
↓ 55 callers
Method
hasChainedItem
cachelib/allocator/CacheItem.h:954
↓ 54 callers
Method
checkKeyExists
cachelib/allocator/nvmcache/tests/NvmTestBase.cpp:56
↓ 54 callers
Method
find
cachelib/navy/bighash/Bucket.cpp:61
↓ 54 callers
Method
getNumSlabsAdvised
cachelib/allocator/memory/MemoryPoolManager.cpp:79
↓ 54 callers
Method
get_allocator
(&self)
cachelib/rust/src/lrucache.rs:425
↓ 54 callers
Function
makeConfig
4x16k regions
cachelib/navy/block_cache/tests/BlockCacheTest.cpp:57
↓ 54 callers
Method
reached
cachelib/navy/testing/SeqPoints.cpp:42
↓ 53 callers
Method
capacity
Return capacity of the index in this map
cachelib/datatype/RangeMap.h:167
↓ 53 callers
Method
flush
cachelib/navy/block_cache/Allocator.cpp:135
↓ 51 callers
Method
free
cachelib/allocator/memory/MemoryPool.cpp:356
↓ 51 callers
Function
makeEngine
cachelib/navy/block_cache/tests/BlockCacheTest.cpp:82
↓ 51 callers
Method
recordAccess
cachelib/allocator/MM2Q.h:706
↓ 51 callers
Method
wait
blocks until `isReady() == true`.
cachelib/allocator/Handle.h:239
↓ 50 callers
Method
makeNewSlab
cachelib/allocator/memory/SlabAllocator.cpp:408
↓ 50 callers
Method
poolId
pool id for the cache allocations
cachelib/allocator/nvmcache/tests/NvmTestBase.h:54
↓ 50 callers
Method
write
cachelib/navy/common/Device.cpp:433
↓ 49 callers
Method
addChainedItem
cachelib/allocator/CacheAllocator.h:3183
next →
1–100 of 5,467, ranked by callers