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
↓ 49 callers
Method
getClassId
cachelib/allocator/memory/Slab.h:318
↓ 48 callers
Method
flushNvmCache
cachelib/allocator/CacheAllocator.h:4383
↓ 48 callers
Method
getSize
This is the size of the memory allocation requested by the user. The memory range [getMemory(), getMemory() + getSize()) is usable.
cachelib/allocator/tests/Cache.h:52
↓ 47 callers
Method
allocate
cachelib/interface/components/RAMCacheComponent.cpp:236
↓ 47 callers
Method
found
cachelib/navy/block_cache/Index.h:82
↓ 46 callers
Method
getValidAllocSizes
cachelib/allocator/tests/TestBase.h:147
↓ 46 callers
Function
makeDriver
cachelib/navy/block_cache/tests/BlockCacheTest.cpp:88
↓ 46 callers
Method
track
cachelib/navy/block_cache/LruPolicy.cpp:50
↓ 45 callers
Method
set
Insert a key->value mapping into the pool. Returns true if the insertion was successful, false otherwise. This will not overwrite existing data, and s
cachelib/rust/src/lrucache.rs:941
↓ 44 callers
Function
computeStorageSize
@param capacity number of maximum entries for the hash table @return bytes required for the hashtable to fit
cachelib/datatype/Map.h:56
↓ 44 callers
Method
index
Returns the unique index.
cachelib/navy/block_cache/Types.h:40
↓ 44 callers
Function
makeJobScheduler
cachelib/navy/block_cache/tests/BlockCacheTest.cpp:52
↓ 43 callers
Method
address
cachelib/navy/block_cache/Index.h:89
↓ 43 callers
Method
getPoolId
cachelib/allocator/memory/MemoryAllocator.cpp:141
↓ 43 callers
Method
insertOrReplace
cachelib/datatype/Map.h:165
↓ 43 callers
Method
shutDown
cachelib/shm/ShmManager.cpp:191
↓ 42 callers
Method
getNumAllocs
cachelib/experimental/deprecated_objcache/tests/Common.h:91
↓ 42 callers
Method
getTotalObjectSize
Get the total size of all cached objects in bytes.
cachelib/object_cache/ObjectCache.h:431
↓ 42 callers
Function
injectPauseWait
cachelib/common/inject_pause.cpp:152
↓ 42 callers
Method
mapAddress
maps the segment into the address for the segment's current length. If the segment is invalid or deleted, returns false and does nothing. @param add
cachelib/shm/Shm.h:106
↓ 41 callers
Method
getAllocsPerSlab
returns the number of allocations that can be made out of a Slab.
cachelib/allocator/memory/AllocationClass.h:98
↓ 41 callers
Method
id
Returns the region id.
cachelib/navy/block_cache/Region.h:210
↓ 40 callers
Method
getId
returns the poolId of this memory pool.
cachelib/allocator/memory/MemoryPool.h:79
↓ 40 callers
Method
isNull
Return true if data is nullptr
cachelib/navy/common/Buffer.h:154
↓ 39 callers
Method
find
cachelib/cachebench/cache/Cache.h:1004
↓ 39 callers
Method
getNumActiveHandles
cachelib/allocator/CacheAllocator.h:6017
↓ 39 callers
Method
processReq
cachelib/cachebench/workload/PieceWiseCache.cpp:465
↓ 39 callers
Method
rbegin
cachelib/allocator/datastruct/DList.h:442
↓ 39 callers
Method
status
Returns the current open status.
cachelib/navy/block_cache/Region.h:301
↓ 39 callers
Method
toString
cachelib/allocator/CacheItem.h:755
↓ 38 callers
Method
cache
cachelib/adaptor/rocks_secondary_cache/tests/CachelibWrapperTest.cpp:140
↓ 38 callers
Method
get
cachelib/allocator/CacheAllocator.h:255
↓ 38 callers
Method
numSlabsForClass
number of slabs in this class id
cachelib/allocator/CacheStats.h:213
↓ 37 callers
Method
getGlobalCacheStats
cachelib/allocator/tests/CacheBaseTest.cpp:53
↓ 37 callers
Method
getSlabHeader
cachelib/allocator/memory/SlabAllocator.cpp:488
↓ 37 callers
Method
key
@return key as StringPiece
cachelib/allocator/nvmcache/ReqContexts.h:48
↓ 37 callers
Method
offset
Returns the 64-bit offset.
cachelib/navy/block_cache/Types.h:77
↓ 37 callers
Method
pushToNvmCacheFromRamForTesting
cachelib/allocator/nvmcache/tests/NvmTestBase.h:99
↓ 36 callers
Method
isInMMContainer
cachelib/allocator/CacheItem.h:833
↓ 36 callers
Method
unlock
cachelib/common/Mutex.h:231
↓ 35 callers
Method
end
cachelib/navy/block_cache/Index.h:359
↓ 35 callers
Method
find
cachelib/interface/tests/InterfaceTest.cpp:143
↓ 35 callers
Method
getCreationTime
cachelib/allocator/CacheItem.h:739
↓ 35 callers
Method
insert
cachelib/interface/components/RAMCacheComponent.cpp:265
↓ 35 callers
Method
inspectCache
cachelib/allocator/nvmcache/tests/NvmTestBase.h:123
↓ 35 callers
Method
isInMMContainer
cachelib/allocator/tests/MMTypeTest.h:86
↓ 35 callers
Function
removePath
throws error on any failure. */
cachelib/common/Utils.cpp:310
↓ 34 callers
Method
add
Adds a 64-bit offset to the existing offset and returns the new @AbsAddress. @param ofs the 64-bit offset to be added
cachelib/navy/block_cache/Types.h:82
↓ 34 callers
Method
add
cachelib/common/AtomicCounter.h:83
↓ 34 callers
Function
genRandomStr
cachelib/allocator/nvmcache/tests/NvmCacheTests.cpp:32
↓ 34 callers
Method
insert
cachelib/navy/driver/Driver.cpp:113
↓ 34 callers
Method
key
cachelib/navy/bighash/Bucket.cpp:34
↓ 34 callers
Method
lookup
cachelib/navy/bighash/BigHash.cpp:397
↓ 34 callers
Method
start
cachelib/common/PeriodicWorker.cpp:73
↓ 34 callers
Method
startSlabRelease
cachelib/allocator/memory/MemoryPool.cpp:490
↓ 33 callers
Function
getDefaultConfig
cachelib/allocator/memory/tests/SlabAllocatorTest.cpp:40
↓ 33 callers
Method
getKey
cachelib/allocator/tests/AccessTypeTest.h:49
↓ 33 callers
Function
getRandomAllocSizes
get n random allocation sizes which are at least minSize bytes long.
cachelib/allocator/memory/tests/TestBase.cpp:142
↓ 33 callers
Method
isMemoryInSlab
cachelib/allocator/memory/SlabAllocator.cpp:504
↓ 33 callers
Method
isNvmClean
cachelib/allocator/CacheItem.h:883
↓ 33 callers
Method
remove
cachelib/navy/block_cache/BlockCache.cpp:608
↓ 32 callers
Method
addPool
cachelib/allocator/CacheAllocator.h:4949
↓ 32 callers
Method
getAllocSize
fetch the allocation size for the pool id and class id. @param pid the pool id @param cid the allocation class id @return the allocation size corr
cachelib/allocator/memory/MemoryAllocator.h:514
↓ 32 callers
Method
getPoolId
cachelib/allocator/CacheAllocator.h:5094
↓ 32 callers
Method
getRequestRange
* Get the actual bytes indexes that we need to return for the request. * Returns folly::none if no or invalid range provided. */
cachelib/common/piecewise/RequestRange.h:45
↓ 32 callers
Method
isAccessible
cachelib/allocator/tests/AccessTypeTest.h:56
↓ 32 callers
Method
isChainedItem
cachelib/allocator/CacheItem.h:949
↓ 32 callers
Method
lock
cachelib/common/Mutex.h:229
↓ 31 callers
Method
estimate
cachelib/common/PercentileStats.cpp:26
↓ 31 callers
Method
fetch
cachelib/allocator/nvmcache/tests/NvmTestBase.cpp:60
↓ 31 callers
Method
getCacheMemoryStats
cachelib/allocator/CacheAllocator.h:6136
↓ 31 callers
Method
lookup
cachelib/navy/driver/Driver.cpp:219
↓ 31 callers
Method
removeFromRamForTesting
cachelib/allocator/nvmcache/tests/NvmTestBase.h:91
↓ 31 callers
Method
value
cachelib/navy/block_cache/BlockCache.cpp:67
↓ 30 callers
Method
addSlab
cachelib/allocator/memory/AllocationClass.cpp:172
↓ 30 callers
Function
getCurrentTimeMs
For nano second granularity, std::chrono::steady_clock seems to do a fine job.
cachelib/common/Time.h:39
↓ 30 callers
Method
getId
cachelib/allocator/tests/MMTypeTest.h:53
↓ 30 callers
Method
getNumUsableSlabs
cachelib/allocator/memory/SlabAllocator.cpp:340
↓ 30 callers
Method
remove
cachelib/datatype/Map.h:213
↓ 30 callers
Method
sizeHint
cachelib/navy/block_cache/Index.h:94
↓ 30 callers
Method
trackValue
track latency by taking the value of duration directly.
cachelib/common/PercentileStats.h:73
↓ 29 callers
Method
beginSet
cachelib/cachebench/consistency/ValueTracker.cpp:49
↓ 29 callers
Method
couldExist
cachelib/common/BloomFilter.cpp:95
↓ 29 callers
Method
getCurrentEntriesLimit
Get the current L1 entries number limit.
cachelib/object_cache/ObjectCache.h:436
↓ 29 callers
Method
numEvictions
cachelib/allocator/CacheStats.cpp:364
↓ 29 callers
Method
set
cachelib/common/BloomFilter.cpp:83
↓ 29 callers
Method
totalFragmentation
cachelib/allocator/CacheStats.cpp:404
↓ 28 callers
Method
dataEnd
Return end of the data
cachelib/navy/common/Buffer.h:66
↓ 28 callers
Method
getHead
cachelib/allocator/datastruct/DList.h:176
↓ 28 callers
Method
isReady
Return true iff item handle is ready to use. Empty handles are considered ready with it_ == nullptr.
cachelib/allocator/Handle.h:214
↓ 28 callers
Function
makeDriverConfig
cachelib/navy/driver/tests/DriverTest.cpp:185
↓ 28 callers
Method
reset
Invalidates this iterator
cachelib/allocator/datastruct/DList.h:221
↓ 27 callers
Method
getCounters
cachelib/navy/block_cache/LruPolicy.cpp:181
↓ 27 callers
Method
getHandleCountForThread
cachelib/allocator/CacheAllocator.h:6022
↓ 27 callers
Method
getName
cachelib/allocator/CCacheAllocator.cpp:48
↓ 27 callers
Function
pathExists
cachelib/common/Utils.cpp:252
↓ 27 callers
Method
sizeInBytes
cachelib/datatype/Map.h:706
↓ 27 callers
Method
totalHits
cachelib/navy/block_cache/Index.h:104
↓ 26 callers
Method
get
cachelib/common/Utils.h:197
↓ 26 callers
Method
getEvictionIterator
cachelib/allocator/MM2Q.h:906
← previous
next →
101–200 of 5,467, ranked by callers