lmcache.storage_backend.mem_pool package#
Submodules#
lmcache.storage_backend.mem_pool.base_pool module#
- class lmcache.storage_backend.mem_pool.base_pool.BasePool[source]#
Interface for mem pool
lmcache.storage_backend.mem_pool.local_pool module#
- class lmcache.storage_backend.mem_pool.local_pool.LocalCPUBufferPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
LocalCPUPool
- class lmcache.storage_backend.mem_pool.local_pool.LocalCPUPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
LocalPool
- class lmcache.storage_backend.mem_pool.local_pool.LocalGPUPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
LocalPool
only for unit testing, might not be useful in production
- class lmcache.storage_backend.mem_pool.local_pool.LocalPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
BasePool
Module contents#
- class lmcache.storage_backend.mem_pool.KVObj(chunk_idx: int, size: int, data: torch.Tensor)[source]#
- class lmcache.storage_backend.mem_pool.LocalCPUBufferPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
LocalCPUPool
- class lmcache.storage_backend.mem_pool.LocalCPUPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
LocalPool
- class lmcache.storage_backend.mem_pool.LocalGPUPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
LocalPool
only for unit testing, might not be useful in production
- class lmcache.storage_backend.mem_pool.LocalPool(metadata: LMCacheMemPoolMetadata)[source]#
Bases:
BasePool