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
↓ 26 callers
Method
getNext
cachelib/navy/bighash/Bucket.cpp:198
↓ 26 callers
Method
getNumEntries
Return the number of objects in cache
cachelib/object_cache/ObjectCache.h:393
↓ 26 callers
Method
getRandomNewKey
cachelib/allocator/tests/TestBase.h:129
↓ 26 callers
Function
injectPauseSet
cachelib/common/inject_pause.cpp:122
↓ 26 callers
Function
makeDir
throws error on any failure. */
cachelib/common/Utils.cpp:275
↓ 26 callers
Function
makeJobScheduler
cachelib/navy/driver/tests/DriverTest.cpp:173
↓ 25 callers
Method
done
return whether the iteration has reached the end
cachelib/navy/bighash/Bucket.h:53
↓ 25 callers
Method
enqueueWithKey
cachelib/navy/scheduler/NavyRequestScheduler.cpp:102
↓ 25 callers
Method
getExpiryTime
cachelib/allocator/CacheItem.h:712
↓ 25 callers
Method
getSlabReleaseStats
cachelib/allocator/tests/CacheBaseTest.cpp:54
↓ 25 callers
Function
getSteadyClock
cachelib/navy/common/Utils.h:31
↓ 25 callers
Method
linkAtHead
cachelib/allocator/datastruct/DList.h:268
↓ 25 callers
Method
overLimit
returns true if the memory pools has more memory allocated than the current size. This is possible because we allow resizing the pool dynamically.
cachelib/allocator/memory/MemoryPool.h:106
↓ 25 callers
Method
remove
cachelib/navy/bighash/Bucket.cpp:160
↓ 25 callers
Method
saveState
cachelib/allocator/memory/MemoryPool.cpp:362
↓ 25 callers
Method
validate
cachelib/navy/engine/EnginePair.cpp:323
↓ 25 callers
Method
wait
Wait for the count down to complete.
cachelib/common/CountDownLatch.cpp:24
↓ 24 callers
Method
ensureAllocsOnlyFromEvictions
cachelib/allocator/tests/TestBase.h:224
↓ 24 callers
Method
get
cachelib/interface/Handle.h:191
↓ 24 callers
Function
getAllocSize
Get the total allocation size for given size
cachelib/datatype/Buffer.h:48
↓ 24 callers
Method
getConfig
cachelib/allocator/MM2Q.h:964
↓ 24 callers
Method
insertOrReplace
cachelib/experimental/deprecated_objcache/ObjectCache.h:587
↓ 24 callers
Method
persist
cachelib/navy/block_cache/FifoPolicy.cpp:59
↓ 24 callers
Method
stop
cachelib/common/PeriodicWorker.cpp:102
↓ 24 callers
Method
touch
cachelib/navy/block_cache/LruPolicy.cpp:35
↓ 23 callers
Method
beginGet
cachelib/cachebench/consistency/ValueTracker.cpp:44
↓ 23 callers
Function
createMemoryRecordReader
cachelib/common/Serialization.cpp:113
↓ 23 callers
Function
end
cachelib/datatype/RangeMap.h:255
↓ 23 callers
Method
getAllocInfo
fetch the pool and allocation class information for the memory corresponding to a memory allocation from the allocator. Caller is expected to supply a
cachelib/allocator/memory/MemoryAllocator.h:482
↓ 23 callers
Method
getSize
cachelib/allocator/CacheItem.h:696
↓ 23 callers
Method
getSize
returns the size of the NVM device
cachelib/allocator/nvmcache/NvmCache.h:267
↓ 23 callers
Method
insert
cachelib/common/ApproxSplitSet.h:61
↓ 23 callers
Method
isMapped
is the segment currently mapped to the address space
cachelib/shm/Shm.h:158
↓ 23 callers
Method
isValid
cachelib/allocator/nvmcache/NvmCache.h:493
↓ 23 callers
Method
read
This API reads size bytes from the Device from offset into a Buffer and returns the Buffer. If offset and size are not aligned to device's ioAlignment
cachelib/navy/common/Device.cpp:549
↓ 23 callers
Method
recover
cachelib/navy/block_cache/FifoPolicy.cpp:73
↓ 23 callers
Method
releaseSlab
cachelib/allocator/tests/CacheBaseTest.cpp:68
↓ 23 callers
Method
rid
Returns the region id.
cachelib/navy/block_cache/Types.h:113
↓ 23 callers
Method
serialize
cachelib/allocator/nvmcache/NvmCache.h:635
↓ 23 callers
Function
toCallback
cachelib/navy/testing/Callbacks.h:57
↓ 22 callers
Method
allSlabsAllocated
returns true if the pool has allocated all the slabs it can for some allocation class. This does not mean that the pool is full since the allocation c
cachelib/allocator/memory/MemoryPool.h:129
↓ 22 callers
Function
createCache
cachelib/experimental/deprecated_objcache/tests/ObjectCacheTest.cpp:38
↓ 22 callers
Method
endGet
cachelib/cachebench/consistency/ValueTracker.cpp:60
↓ 22 callers
Method
endSet
cachelib/cachebench/consistency/ValueTracker.cpp:68
↓ 22 callers
Function
getStatIfExists
returns true with the file's mode. false if the file does not exist. * throws system_error for all other errors */
cachelib/common/Utils.cpp:235
↓ 22 callers
Method
lockExclusive
cachelib/common/Mutex.h:374
↓ 22 callers
Method
openAndAllocate
cachelib/navy/block_cache/Region.cpp:51
↓ 22 callers
Method
setSimpleFile
cachelib/allocator/nvmcache/NavyConfig.cpp:115
↓ 22 callers
Method
throttle
cachelib/allocator/MemoryMonitor.cpp:342
↓ 21 callers
Method
completeSlabRelease
cachelib/allocator/memory/MemoryPool.cpp:536
↓ 21 callers
Function
createMemoryRecordWriter
cachelib/common/Serialization.cpp:108
↓ 21 callers
Method
getEvictionAgeStat
cachelib/allocator/MM2Q.h:775
↓ 21 callers
Function
getRandomAsciiStr
cachelib/common/TestUtils.cpp:95
↓ 21 callers
Method
getTail
cachelib/allocator/datastruct/DList.h:177
↓ 21 callers
Method
key
cachelib/navy/block_cache/BlockCache.cpp:60
↓ 21 callers
Method
post
cachelib/common/Profiled.h:115
↓ 21 callers
Method
resize
cachelib/compact_cache/CCache.h:792
↓ 21 callers
Method
set
cachelib/compact_cache/CCache.h:868
↓ 21 callers
Function
setLayout
cachelib/navy/bighash/tests/BigHashTest.cpp:39
↓ 21 callers
Method
setRaidFiles
cachelib/allocator/nvmcache/NavyConfig.cpp:126
↓ 20 callers
Method
accept
cachelib/navy/admission_policy/RejectRandomAP.cpp:41
↓ 20 callers
Function
accumulate
cachelib/navy/block_cache/FifoPolicy.cpp:25
↓ 20 callers
Method
begin
cachelib/allocator/ChainedHashTable.h:1431
↓ 20 callers
Method
fillUpOneSlab
cachelib/allocator/tests/TestBase.h:172
↓ 20 callers
Method
getAt
cachelib/cachebench/consistency/RingBuffer.h:62
↓ 20 callers
Method
getChain
cachelib/allocator/ChainedAllocs.h:57
↓ 20 callers
Method
getCount
cachelib/common/CountMinSketch.h:206
↓ 20 callers
Method
getStats
cachelib/allocator/nvmcache/tests/NvmTestBase.cpp:73
↓ 20 callers
Function
getUpdateTime
cachelib/allocator/datastruct/DList.h:69
↓ 20 callers
Method
isNullWriteHandle
cachelib/datatype/Map.h:469
↓ 20 callers
Method
isReleased
@return true if the slab has already been released and there are no active allocations to be freed.
cachelib/allocator/memory/Slab.h:309
↓ 20 callers
Method
pop
cachelib/allocator/datastruct/SList.h:267
↓ 20 callers
Method
reset
cachelib/navy/driver/Driver.cpp:253
↓ 20 callers
Method
sub
Subtracts a 64-bit offset from the existing offset and returns the new @AbsAddress. @param ofs the 64-bit offset subtrahend, less than the existing
cachelib/navy/block_cache/Types.h:87
↓ 19 callers
Method
allocatedSlabs
number of slabs under this memory pool allocated from the slab allocator. this includes freeSlabs.
cachelib/allocator/memory/MemoryAllocatorStats.h:101
↓ 19 callers
Method
getAllocationClassId
cachelib/allocator/memory/MemoryPool.cpp:194
↓ 19 callers
Method
getKey
@return key as StringPiece
cachelib/allocator/nvmcache/NvmCache.h:455
↓ 19 callers
Method
getMemUsageBytes
cachelib/object_cache/util/ThreadMemoryTracker.h:46
↓ 19 callers
Method
getOp
cachelib/cachebench/util/Request.h:180
↓ 19 callers
Method
getUpdateTime
cachelib/allocator/tests/MMTypeTest.h:59
↓ 19 callers
Method
next
Move to the next entry. The handle will become invalid after * reaching the last entry, or when reaching an empty entry. * Must be called on
cachelib/compact_cache/CCacheFixedLruBucket.h:95
↓ 19 callers
Method
reset
cachelib/allocator/ChainedHashTable.h:1440
↓ 19 callers
Method
shrinkPool
cachelib/allocator/memory/MemoryPoolManager.cpp:215
↓ 19 callers
Method
write
Returns object index you can use to read/write directly.
cachelib/cachebench/consistency/RingBuffer.h:43
↓ 18 callers
Method
allocate
This is very simple as it only tries to allocate starting from the tail of the storage. Returns null view() if we don't have any more space.
cachelib/navy/bighash/BucketStorage.cpp:28
↓ 18 callers
Method
bfRejectCount
return how manu times a lookup is rejected by the bloom filter
cachelib/navy/bighash/BigHash.h:154
↓ 18 callers
Method
clear
cachelib/navy/block_cache/CombinedEntryBlock.cpp:136
↓ 18 callers
Method
detachCurrentMapping
detaches the current mapping if it exists.
cachelib/shm/Shm.h:161
↓ 18 callers
Function
eventuallyTrue
cachelib/common/tests/PeriodicWorkerTest.cpp:26
↓ 18 callers
Method
evictionCount
internal eviction count
cachelib/allocator/nvmcache/tests/NvmTestBase.h:66
↓ 18 callers
Method
find
cachelib/allocator/CacheAllocator.h:4654
↓ 18 callers
Method
finish
cachelib/navy/testing/MockJobScheduler.cpp:44
↓ 18 callers
Method
flush
cachelib/navy/driver/Driver.cpp:246
↓ 18 callers
Method
getMemory
cachelib/interface/components/RAMCacheComponent.cpp:101
↓ 18 callers
Method
getNumBuckets
return the number of buckets in hash table
cachelib/allocator/ChainedHashTable.h:169
↓ 18 callers
Method
isValidSlab
true if the slab is a valid allocated slab in the memory belonging to this allocator.
cachelib/allocator/memory/SlabAllocator.h:211
↓ 18 callers
Method
makeIOBuffer
Create an IO buffer of at least @size bytes that can be used for read and write. For example, direct IO device allocates a properly aligned buffer.
cachelib/navy/common/Device.h:136
↓ 18 callers
Function
makeKey
cachelib/benchmarks/HashMapBenchmark.cpp:59
↓ 18 callers
Method
removeShm
cachelib/shm/ShmManager.cpp:386
↓ 18 callers
Method
setOp
cachelib/cachebench/util/Request.h:181
← previous
next →
201–300 of 5,467, ranked by callers