Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/facebook/CacheLib
/ functions
Functions
5,467 in github.com/facebook/CacheLib
⨍
Functions
5,467
◇
Types & classes
1,077
↓ 12 callers
Method
convertToShmCache
cachelib/allocator/nvmcache/tests/NvmTestBase.cpp:77
↓ 12 callers
Method
createCountVisitor
cachelib/common/Utils.h:158
↓ 12 callers
Function
end
cachelib/datatype/Buffer.h:144
↓ 12 callers
Method
enqueueWithKey
Ignore key because mock scheduler models one thread job scheduler
cachelib/navy/testing/MockJobScheduler.cpp:29
↓ 12 callers
Method
getAllocInfo
get the allocation information for the specified memory address. @throw std::invalid_argument if the memory does not belong to this cache allocator
cachelib/allocator/CacheAllocator.h:1169
↓ 12 callers
Method
getHandle
cachelib/allocator/tests/ItemHandleTest.cpp:65
↓ 12 callers
Function
getNumPages
cachelib/common/Utils.cpp:225
↓ 12 callers
Method
getPoolIds
cachelib/allocator/memory/MemoryPoolManager.cpp:192
↓ 12 callers
Function
getRSSBytes
cachelib/common/Utils.cpp:380
↓ 12 callers
Method
getRegionSize
cachelib/allocator/nvmcache/NavyConfig.h:615
↓ 12 callers
Method
insert
cachelib/object_cache/ObjectCache.h:1044
↓ 12 callers
Method
isReady
Checks whether status of the open is Ready.
cachelib/navy/block_cache/Region.h:295
↓ 12 callers
Method
notifyAll
Expect to be protected by the same lock
cachelib/common/ConditionVariable.h:90
↓ 12 callers
Method
peekIndexEntry
cachelib/navy/block_cache/CombinedEntryBlock.cpp:125
↓ 12 callers
Method
physicalOffset
Convert relative address to phsyical offset on the device
cachelib/navy/block_cache/RegionManager.h:280
↓ 12 callers
Method
recover
Restore entries from shared memory. On failure, starts empty.
cachelib/allocator/nvmcache/AccessTimeMap.h:198
↓ 12 callers
Method
remove
cachelib/cachebench/cache/Cache.h:885
↓ 12 callers
Function
setUpdateTime
set and get the time when the node was updated in the lru.
cachelib/allocator/datastruct/DList.h:67
↓ 12 callers
Method
unCompress
cachelib/allocator/memory/CompressedPtr.h:366
↓ 12 callers
Method
valid
Checks whether the index is valid.
cachelib/navy/block_cache/Types.h:37
↓ 11 callers
Method
addIndexEntryToStream
cachelib/navy/block_cache/CombinedEntryManager.cpp:98
↓ 11 callers
Method
computeChainLength
iterate and compute the length of the chain. This is O(N) computation. @return the length of the chain
cachelib/allocator/ChainedAllocs.h:40
↓ 11 callers
Method
copy
Copy copies size_ number of bytes from dataOffsetStart_ to a new buffer and returns the new buffer @param alignment alignment of the new buffer
cachelib/navy/common/Buffer.h:168
↓ 11 callers
Method
decrement
cachelib/common/Cohort.h:67
↓ 11 callers
Method
expectedCommands
cachelib/cachebench/util/tests/NandWritesTest.cpp:58
↓ 11 callers
Method
exportStats
cachelib/allocator/Cache.cpp:571
↓ 11 callers
Function
generateAllocSizes
helper function to generate the allocation sizes for addPool()
cachelib/allocator/Util.h:171
↓ 11 callers
Method
getBucketsPower
cachelib/allocator/ChainedHashTable.h:302
↓ 11 callers
Method
getCacheSize
cachelib/allocator/CacheAllocatorConfig.h:479
↓ 11 callers
Method
getData
cachelib/datatype/Buffer.cpp:64
↓ 11 callers
Function
getEndOffset
cachelib/navy/bighash/tests/BucketStorageTest.cpp:25
↓ 11 callers
Method
getKeyValuePairs
cachelib/persistence/tests/PersistenceCache.h:201
↓ 11 callers
Method
getLocksPower
cachelib/allocator/ChainedHashTable.h:304
↓ 11 callers
Method
getNumClassId
return the number of allocation ClassIds for this pool based on the allocation sizes that it was configured with. All allocations from this pool will
cachelib/allocator/memory/MemoryPool.h:289
↓ 11 callers
Function
getNumResidentPages
cachelib/common/Utils.cpp:197
↓ 11 callers
Function
getNvmTestConfig
cachelib/allocator/tests/NvmTestUtils.h:28
↓ 11 callers
Method
getRefCount
cachelib/allocator/tests/AccessTypeTest.h:57
↓ 11 callers
Method
getTotalCombinedEntryBlocks
cachelib/navy/block_cache/CombinedEntryManager.h:101
↓ 11 callers
Function
get_or_create_volatile_pool
Obtain a new volatile pool from the cache. Volatile pools cannot be created from a persistent cache, and are therefore safe for all objects.
cachelib/rust/src/lrucache.rs:523
↓ 11 callers
Method
insert
cachelib/allocator/CacheAllocator.h:3769
↓ 11 callers
Method
insert
cachelib/benchmarks/SpeedUpExistenceCheckBenchmark.cpp:135
↓ 11 callers
Method
insertIfNotExists
cachelib/navy/block_cache/FixedSizeIndex.cpp:139
↓ 11 callers
Method
isTopCohort
cachelib/common/Cohort.h:136
↓ 11 callers
Method
key
cachelib/compact_cache/CCacheFixedLruBucket.h:100
↓ 11 callers
Method
markSafeShutDown
cachelib/allocator/NvmCacheState.cpp:158
↓ 11 callers
Method
persist
cachelib/allocator/nvmcache/AccessTimeMap.h:142
↓ 11 callers
Method
remainingBytes
cachelib/datatype/Buffer.h:705
↓ 11 callers
Method
saveState
cachelib/allocator/tests/MMTypeTest.h:109
↓ 11 callers
Method
setConfig
cachelib/allocator/MM2Q.h:943
↓ 11 callers
Method
setName
cachelib/navy/testing/SeqPoints.cpp:69
↓ 11 callers
Method
setPriority
Assigns this region a priority. The meaning of priority is dependent on the eviction policy we choose.
cachelib/navy/block_cache/Region.h:112
↓ 11 callers
Method
size
cachelib/allocator/datastruct/MultiDList.h:79
↓ 11 callers
Method
slabIdx
returns the index of the slab from the start of the slab memory
cachelib/allocator/memory/SlabAllocator.h:310
↓ 11 callers
Method
splice
cachelib/allocator/datastruct/SList.h:290
↓ 10 callers
Method
Insert
cachelib/adaptor/rocks_secondary_cache/CachelibWrapper.cpp:144
↓ 10 callers
Method
Value
cachelib/adaptor/rocks_secondary_cache/CachelibWrapper.cpp:104
↓ 10 callers
Method
accept
The method that the outside class calls to get the admission decision. It captures the common logics (e.g statistics) then delicates the detailed impl
cachelib/allocator/NvmAdmissionPolicy.h:45
↓ 10 callers
Method
addChainedItem
cachelib/cachebench/cache/Cache.h:920
↓ 10 callers
Method
addValue
cachelib/allocator/MemoryMonitor.cpp:323
↓ 10 callers
Method
clone
cachelib/datatype/Buffer.h:585
↓ 10 callers
Method
evictionAgeForClass
mm container eviction age for the class
cachelib/allocator/CacheStats.h:223
↓ 10 callers
Method
get
cachelib/common/Mutex.h:253
↓ 10 callers
Function
getCurrentTimeNs
cachelib/common/Time.h:44
↓ 10 callers
Function
getFileSize
cachelib/allocator/nvmcache/tests/NavySetupTest.cpp:46
↓ 10 callers
Method
getMemorySize
cachelib/interface/components/RAMCacheComponent.cpp:104
↓ 10 callers
Method
getPoolId
cachelib/compact_cache/allocators/TestAllocator.h:82
↓ 10 callers
Method
getPoolsOverLimit
cachelib/allocator/memory/MemoryPoolManager.cpp:239
↓ 10 callers
Method
getQueueSize
Returns how many jobs are currently enqueued in the scheduler
cachelib/navy/testing/MockJobScheduler.h:70
↓ 10 callers
Function
getRandomPow2AllocSizes
cachelib/allocator/memory/tests/TestBase.cpp:124
↓ 10 callers
Method
getline
cachelib/cachebench/workload/tests/KVReplayGeneratorTest.cpp:74
↓ 10 callers
Method
isPresent
checks if there is a key present and returns true if so.
cachelib/allocator/nvmcache/TombStones.h:51
↓ 10 callers
Method
itemHistory
cachelib/navy/block_cache/Index.h:109
↓ 10 callers
Method
markMoving
cachelib/allocator/CacheItem.h:858
↓ 10 callers
Method
recordAndPopulateAccessFeatures
1. The access count of the accessed key in the current bucket is incremented. 2. Collect the most recent config_.numBuckets access counts and return i
cachelib/common/AccessTracker.h:88
↓ 10 callers
Method
remove
cachelib/interface/components/RAMCacheComponent.cpp:395
↓ 10 callers
Method
removeIfMatch
cachelib/navy/block_cache/FixedSizeIndex.cpp:199
↓ 10 callers
Method
runFirstIf
cachelib/navy/testing/MockJobScheduler.cpp:53
↓ 10 callers
Method
setHandle
cachelib/allocator/tests/ItemHandleTest.cpp:69
↓ 10 callers
Method
shouldDropNvmCache
cachelib/allocator/NvmCacheState.cpp:143
↓ 10 callers
Method
size
cachelib/allocator/MMWTinyLFU.h:606
↓ 10 callers
Method
val
cachelib/compact_cache/CCacheFixedLruBucket.h:101
↓ 10 callers
Method
viewAsChainedAllocs
view a read-only parent item as a chain of allocations if it has chained alloc. The returned chained-alloc is good to iterate upon, but will block any
cachelib/allocator/CacheAllocator.h:758
↓ 10 callers
Method
wastedBytes
cachelib/datatype/Buffer.h:714
↓ 9 callers
Method
Buf
cachelib/adaptor/rocks_secondary_cache/tests/CachelibWrapperTest.cpp:52
↓ 9 callers
Function
bindThis
cachelib/navy/common/CompilerUtils.h:48
↓ 9 callers
Method
compact
cachelib/datatype/Map.h:720
↓ 9 callers
Method
convertToIOBuf
Convert a Read Handle to an IOBuf. The returned IOBuf gives a read-only view to the user. The item's ownership is retained by the IOBuf until its dest
cachelib/allocator/CacheAllocator.h:824
↓ 9 callers
Function
createCache
cachelib/datatype/tests/RangeMapTest.cpp:36
↓ 9 callers
Function
create_cache
(fb: FacebookInit)
cachelib/rust/src/lrucache.rs:1281
↓ 9 callers
Method
dumpEvictionIterator
cachelib/allocator/CacheAllocator.h:4760
↓ 9 callers
Method
end
cachelib/object_cache/ObjectCache.h:406
↓ 9 callers
Method
executeIfValid
cachelib/allocator/nvmcache/InFlightPuts.h:158
↓ 9 callers
Method
findImpl
cachelib/datatype/Map.h:586
↓ 9 callers
Method
get
cachelib/allocator/TypedHandle.h:74
↓ 9 callers
Function
getBytesWritten
Get the "write count" for a drive using `nvme`. Note that different vendors use different units for this value, hence the "factor" argument; see the f
cachelib/cachebench/util/NandWrites.cpp:140
↓ 9 callers
Method
getCacheDir
cachelib/allocator/tests/NvmCacheStateTest.cpp:47
↓ 9 callers
Method
getCallable
Return a callable object that can be used in a compact cache */
cachelib/compact_cache/tests/CCacheTests.h:79
↓ 9 callers
Method
getConfiguredSize
cachelib/allocator/CCacheAllocator.cpp:44
↓ 9 callers
Method
getConfiguredTTL
cachelib/allocator/CacheItem.h:744
↓ 9 callers
Method
getDoneCount
Returns how many jobs have completed so far
cachelib/navy/testing/MockJobScheduler.h:76
← previous
next →
401–500 of 5,467, ranked by callers