MCPcopy Create free account

hub / github.com/LMCache/LMCache / types & classes

Types & classes2,044 in github.com/LMCache/LMCache

↓ 352 callersClassEvent
A single observable event in the MP system. Attributes: event_type: The type of event. timestamp: Wall-clock time (``time.time()`
lmcache/v1/mp_observability/event.py:140
↓ 164 callersClassBitmap
Small Python Bitmap fallback for source-only distributed tests.
tests/v1/distributed/conftest.py:17
↓ 130 callersClassCacheEngineKey
lmcache/utils.py:399
↓ 110 callersClassObjectKey
The unique identifier for an object in the distributed storage manager
lmcache/v1/distributed/api.py:37
↓ 100 callersClassMemoryLayoutDesc
Describes the layout of a memory object
lmcache/v1/distributed/api.py:229
↓ 98 callersClassLocalCPUBackend
Even if local_cpu is False (the hot_cache is not used), contains(), insert_key(), remove(), get_blocking(), get_keys(), and clear() are s
lmcache/v1/storage_backend/local_cpu_backend.py:39
↓ 89 callersClassLMCacheMetadata
LMCacheMetadata should be extracted from the northbound serving engine configuration and wrap the extraction of attributes (e.g. model na
lmcache/v1/metadata.py:17
↓ 80 callersClassL1Manager
Object lifecycle state machine for L1 cache +--------+ | None | <---------------------------------------+ +-----
lmcache/v1/distributed/l1_manager.py:136
↓ 58 callersClassAddressManager
Manages a virtual address space starting from 0 for memory allocation. Key interfaces: - allocate(size): Allocate a block of memory of t
lmcache/v1/memory_management.py:1255
↓ 58 callersClassKVOpEvent
Lightweight KV operation event for queue storage (without common fields)
lmcache/v1/cache_controller/message.py:130
↓ 56 callersClassBatchedKVOperationMsg
Batched KV operation message with common fields and lightweight operations Design: Common fields (instance_id, worker_id, location) are stored on
lmcache/v1/cache_controller/message.py:138
↓ 56 callersClassEventBusConfig
Configuration for the EventBus. Attributes: enabled: Whether the event bus is active. When disabled, ``publish()`` is a no-o
lmcache/v1/mp_observability/event_bus.py:48
↓ 52 callersClassEventBus
Manages event ingestion, queueing, and dispatch to subscribers. Events are appended to a deque on the hot path (``publish()``) and drained by
lmcache/v1/mp_observability/event_bus.py:100
↓ 52 callersClassStorageManager
lmcache/v1/distributed/storage_manager.py:63
↓ 49 callersClassDefaultPrefetchPolicy
Default prefetch policy: for each key, pick the first adapter (lowest index) that has it.
lmcache/v1/distributed/storage_controllers/prefetch_policy.py:129
↓ 45 callersClassAdHocMemoryAllocator
AdHocMemoryAllocator is a simple allocator that does not actually allocate memory. It is used for testing purposes only.
lmcache/v1/memory_management.py:3113
↓ 43 callersClassL2ReconfigureError
HTTP-mappable runtime L2 reconfiguration error.
lmcache/v1/distributed/l2_adapters/reconfiguration.py:11
↓ 43 callersClassRemoteBackend
lmcache/v1/storage_backend/remote_backend.py:27
↓ 42 callersClassPinMemoryAllocator
Allocates memory in the pre-allocated pinned memory.
lmcache/v1/memory_management.py:2284
↓ 40 callersClassQuantizationSpec
lmcache/storage_backend/serde/cachegen_basics.py:22
↓ 37 callersClassEngineGroupInfo
One LMCache KV group: layers of one engine group that share a copy kernel. Carries the layer indices and which engine group they belong to. Sever
lmcache/v1/multiprocess/group_view.py:26
↓ 37 callersClassL1MemoryManagerConfig
The configuration for L1 memory manager.
lmcache/v1/distributed/config.py:105
↓ 36 callersClassProtocolDefinition
Defines the structure and behavior of a protocol request. Attributes: payload_classes: List of expected payload types in order
lmcache/v1/multiprocess/protocols/base.py:95
↓ 35 callersClassHandlerSpec
Specification for a single message queue handler. Args: request_type: The ZMQ request type this handler serves. handler: The call
lmcache/v1/multiprocess/engine_module.py:29
↓ 35 callersClassLRUEvictionPolicy
LRU (Least Recently Used) eviction policy. This policy tracks the order of key accesses and evicts the least recently used keys first wh
lmcache/v1/distributed/eviction_policy/lru.py:20
↓ 35 callersClassMemoryObjMetadata
lmcache/v1/memory_management.py:120
↓ 35 callersClassPrefetchController
Asynchronously prefetches data from L2 adapters into L1 memory. The controller: 1. Accepts prefetch requests via submit_prefetch_request
lmcache/v1/distributed/storage_controllers/prefetch_controller.py:166
↓ 35 callersClassTensorMemoryObj
Wraps a raw flat tensor with some metadata
lmcache/v1/memory_management.py:608
↓ 35 callersClass_Key
ObjectKey-shape stand-in for L1 event metadata.
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:36
↓ 31 callersClassRustRawBlockBackend
Legacy raw-block storage plugin wrapper. The durable raw-device/index/checkpoint logic now lives in RawBlockCore. This wrapper preserves
lmcache/v1/storage_backend/plugins/rust_raw_block_backend.py:74
↓ 29 callersClassConfigItem
Declarative description of a single configurable parameter. Attributes: key: State dict key (matches argparse attr name, e.g., ``"engine_
lmcache/cli/commands/bench/engine_bench/interactive/schema.py:30
↓ 28 callersClassDaxBackend
Storage plugin backend for /dev/dax mmap-backed KV cache.
lmcache/v1/storage_backend/plugins/dax_backend.py:86
↓ 28 callersClassFakeBlockAllocationRecord
Mimics BlockAllocationRecord for testing without importing vLLM types.
tests/v1/mp_observability/subscribers/metrics/test_l0_lifecycle.py:37
↓ 28 callersClassTransferChannelAddress
A transfer-channel-specific address, with starting position and size (in bytes). A single address corresponds to a single memory object.
lmcache/v1/distributed/transfer_channel/api.py:11
↓ 27 callersClassPathSharder
Select one path from a comma-separated list using a sharding policy. Args: raw_csv: Comma-separated directory paths (e.g. ``"
lmcache/v1/storage_backend/path_sharder.py:43
↓ 27 callersClassTTLLock
Minimal TTLLock fallback for tests that only import the symbol.
tests/v1/distributed/conftest.py:84
↓ 25 callersClassL1ManagerConfig
Special config for the L1 Object/Key manager
lmcache/v1/distributed/config.py:188
↓ 24 callersClassDummyMemoryObj
tests/v1/test_cache_policy.py:9
↓ 24 callersClassEvictionConfig
The configuration for eviction policies (L1 and optionally L2).
lmcache/v1/distributed/config.py:208
↓ 24 callersClassGlobalBlendMatcher
Thread-safe fleet-wide chunk fingerprint directory. Hashes published token ranges into per-scope direct-address tables, mutated in place, and
lmcache/v1/mp_coordinator/blend_directory.py:205
↓ 24 callersClassL1MemoryManager
L1MemoryManager manages the allocation and deallocation of L1 memory. Observability metrics to emit: 1. Memory usage 2. Active alloc
lmcache/v1/distributed/memory_manager/l1_memory_manager.py:112
↓ 23 callersClassQuotaManager
Thread-safe registry of byte quotas keyed by ``cache_salt``. Quotas are dynamic — CRUD operations (``set_quota``, ``delete_quota``) are cheap
lmcache/v1/distributed/quota_manager.py:26
↓ 23 callersClassRegisterMsg
Message for Registration (REQ-REP mode)
lmcache/v1/cache_controller/message.py:51
↓ 22 callersClassDefaultStorePolicy
Default store policy: store all keys to all adapters, never delete from L1.
lmcache/v1/distributed/storage_controllers/store_policy.py:144
↓ 22 callersClassMockL2AdapterConfig
Config for a mock L2 adapter (for testing). Fields: - max_size_gb: maximum size in GB. - mock_bandwidth_gb: simulated bandwidth in G
lmcache/v1/distributed/l2_adapters/mock_l2_adapter.py:61
↓ 22 callersClassStatsCollector
Thread-safe stats aggregation for benchmark results. Receives ``RequestResult`` objects from the request sender, maintains running totals, an
lmcache/cli/commands/bench/engine_bench/stats.py:71
↓ 21 callersClassL2UsageManager
Thread-safe in-memory ledger of L2 byte usage per ``cache_salt``, plus a per-key size map so re-stores don't double-count.
lmcache/v1/mp_coordinator/l2/usage_manager.py:17
↓ 21 callersClassStoreController
Asynchronously stores L1 data to L2 adapters after write completion. The controller: 1. Registers a StoreListener with L1Manager to rece
lmcache/v1/distributed/storage_controllers/store_controller.py:196
↓ 21 callersClass_FakeAdapter
Records calls and serves canned responses for adapter methods.
tests/v1/multiprocess/http_apis/test_l2_api.py:36
↓ 20 callersClassBloomFilter
Bloom Filter for memory-efficient.
lmcache/v1/utils/bloom_filter.py:15
↓ 20 callersClassL1MemoryDesc
Describes the L1 memory buffer registered with an external backend (e.g. Nixl).
lmcache/v1/distributed/internal_api.py:16
↓ 20 callersClassStorageManagerConfig
The configuration for the distributed storage manager.
lmcache/v1/distributed/config.py:224
↓ 19 callersClass_RecordingSubscriber
Test subscriber that records events.
tests/v1/mp_observability/test_event_bus.py:36
↓ 18 callersClassErrorMsg
Control Error Message
lmcache/v1/cache_controller/message.py:767
↓ 18 callersClassLMCacheManager
LMCacheManager manages the lifecycle of LMCache internal components. For an integration to utilize the Manager, define a ServiceFactory
lmcache/v1/manager.py:40
↓ 18 callersClassStubRequest
Minimal vLLM Request stub.
tests/v1/test_decode_save_and_preemption.py:23
↓ 17 callersClassL2StoreResult
Immutable result of a completed L2 store task. Encodes both the success flag and bytes transferred in the int value: ``>= 0`` means success (
lmcache/v1/distributed/internal_api.py:174
↓ 17 callersClassMessageQueueClient
lmcache/v1/multiprocess/mq.py:259
↓ 17 callersClassRawBlockL2Adapter
MP L2 adapter that persists KV objects into raw-block slots.
lmcache/v1/distributed/l2_adapters/raw_block_l2_adapter.py:301
↓ 17 callersClassRegistryTree
Central registry managing the tree structure of instances and workers. Structure: instance_id -> InstanceNode -> WorkerNode Lock hierarc
lmcache/v1/cache_controller/utils.py:339
↓ 17 callersClassRequestSender
Async streaming request sender for inference engines. Each ``send_request`` call is a self-contained coroutine. Concurrency is controlled ext
lmcache/cli/commands/bench/engine_bench/request_sender.py:63
↓ 17 callersClassSpanRegistry
Registry of active OTel spans, keyed by ``(session_id, span_name)``. ``span_name`` is a logical identifier (e.g. ``"request"``, ``"retrieve"``,
lmcache/v1/mp_observability/subscribers/tracing/span_registry.py:25
↓ 17 callersClassUnsupportedConfigError
The caller asked the codec to emit something it cannot. Examples: a runtime_layout this codec doesn't implement, or an FP8 variant (e5m2) res
lmcache/v1/kv_codec/errors.py:34
↓ 17 callersClass_StubAdapter
Minimal adapter that satisfies the abstract surface so we can exercise base-class behavior in isolation.
tests/v1/distributed/test_l2_adapter_base.py:35
↓ 16 callersClassAuditConnector
Audit wrapper for RemoteConnector that dynamically wraps all methods. Features: - Automatically wraps all RemoteConnector methods - Metho
lmcache/v1/storage_backend/connector/audit_connector.py:188
↓ 16 callersClassBenchCommand
CLI command for sustained performance benchmarking.
lmcache/cli/commands/bench/__init__.py:14
↓ 16 callersClassMixedMemoryAllocator
Allocates (1) memory in the pre-allocated pinned memory. (2) byte_array buffer memory.
lmcache/v1/memory_management.py:2370
↓ 16 callersClass_FakeMemoryObj
tests/v1/distributed/serde/test_asym_k16_v8_multi.py:37
↓ 15 callersClassBlendTokenRangeMatcherV3
V3 matcher: token-level probe (any offset) + full-hash collision rejection. Self-contained (does not inherit a base matcher).
lmcache/v1/multiprocess/modules/blend_v3.py:106
↓ 15 callersClassCorruptEncodedKVError
The encoded blob's header or payload failed an integrity check. Examples: codec_magic does not match, codec_version is unknown, payload_c
lmcache/v1/kv_codec/errors.py:25
↓ 15 callersClassInstanceRegistry
Thread-safe in-memory registry of mp servers. All public methods acquire an internal lock, so the registry stays consistent under concurrent
lmcache/v1/mp_coordinator/registry.py:55
↓ 15 callersClassMemoryFormat
lmcache/v1/memory_management.py:51
↓ 15 callersClassMessageQueueTestHelper
Helper class to facilitate testing MessageQueueServer and MessageQueueClient. Supports testing with single or multiple concurrent clients, w
tests/v1/multiprocess/test_mq.py:169
↓ 15 callersClassRWLockWithTimeout
A simple read-write lock with timeout support. Multiple readers can hold the lock simultaneously, but only one writer. Note: This lock i
lmcache/v1/cache_controller/locks.py:21
↓ 15 callersClassRuntimePluginLauncher
lmcache/v1/plugin/runtime_plugin_launcher.py:16
↓ 15 callersClass_FakeMemoryObj
tests/v1/distributed/serde/test_asym_k16_v8_v_only.py:52
↓ 14 callersClassConnectorManager
Manager for creating connectors based on URL. This class maintains a registry of connector adapters and creates the appropriate connecto
lmcache/v1/storage_backend/connector/__init__.py:214
↓ 14 callersClassIsolatedLRUEvictionPolicy
Per-``cache_salt`` LRU eviction policy. Maintains one ``OrderedDict`` per ``cache_salt`` (keyed by ``ObjectKey``). New and touched keys move
lmcache/v1/distributed/eviction_policy/isolated_lru.py:33
↓ 14 callersClassLayerCacheEngineKey
A key for the layer cache engine
lmcache/utils.py:564
↓ 14 callersClassNativeConnectorL2Adapter
Wraps a pybind-wrapped C++ IStorageConnector to implement L2AdapterInterface. The native_client must expose: - event_fd() -> int
lmcache/v1/distributed/l2_adapters/native_connector_l2_adapter.py:84
↓ 14 callersClassRemoteMetadata
lmcache/v1/protocol.py:160
↓ 14 callersClass_Fixture
Bundle a config, one token database, and a fake SM. A shared :class:`ChunkedTokenDatabase` instance is essential here: the database lazily re
tests/v1/test_hidden_state_store.py:66
↓ 13 callersClassLoadStoreOp
lmcache/integration/vllm/vllm_multi_process_adapter.py:513
↓ 13 callersClassLocalDiskBackend
lmcache/v1/storage_backend/local_disk_backend.py:99
↓ 13 callersClassPagedTensorMemoryAllocator
Implements a paged memory allocator.
lmcache/v1/memory_management.py:1869
↓ 13 callersClassProgressMonitor
Real-time terminal display for benchmark progress. Runs a daemon thread that redraws stats every second using ANSI cursor control for in-plac
lmcache/cli/commands/bench/engine_bench/progress.py:22
↓ 13 callersClassTensorMemoryAllocator
Implements a "explicit list" memory allocator. Uses AddressManager for address space management.
lmcache/v1/memory_management.py:1580
↓ 12 callersClassGDSL1MemoryManager
L1 memory manager for the GDS slab-file tier. A peer of :class:`~lmcache.v1.distributed.memory_manager.l1_memory_manager.L1MemoryManager`
lmcache/v1/distributed/memory_manager/gds_l1_memory_manager.py:24
↓ 12 callersClassL2AdaptersConfig
Main config for L2 adapters. Holds an ordered list of adapter configs. Each element corresponds to one L2 adapter instance (e.g. two dis
lmcache/v1/distributed/l2_adapters/config.py:376
↓ 12 callersClassMPServerConfig
Configuration for the ZMQ-based multiprocess cache server.
lmcache/v1/multiprocess/config.py:17
↓ 12 callersClassMockMemoryObj
Mock MemoryObj for testing.
tests/v1/storage_backend/test_storage_manager.py:36
↓ 12 callersClassPrefixSuffixTunerConfig
Workload-specific config for the prefix-suffix-tuner workload. Attributes: context_length: Total tokens per request (prefix + breaker + s
lmcache/cli/commands/bench/engine_bench/workloads/prefix_suffix_tuner.py:174
↓ 12 callersClassZMQBenchmarkConfig
Configuration for ZMQ benchmark parameters
lmcache/tools/controller_benchmark/config.py:11
↓ 12 callersClass_TempGPUBuffer
Manages the temporary GPU buffer for GPUCacheContext The logical layout of the temp GPU buffer is (batch size, object group, kernel grou
lmcache/v1/platform/cuda/cache_context.py:59
↓ 11 callersClassAsyncSerdeProcessor
Wraps sync Serializer/Deserializer into async SerdeProcessor. Runs each submitted task in a thread pool. On completion, stores the result and
lmcache/v1/distributed/serde/async_processor.py:37
↓ 11 callersClassBlendTracingSubscriber
Creates OTel spans from CB (Cache Blending) START/END event pairs. Each session gets one root ``"cb.request"`` span that nests all child span
lmcache/v1/mp_observability/subscribers/tracing/cb_server.py:57
↓ 11 callersClassCheckModeRegistry
Registry for dynamically loaded check modes
lmcache/v1/check/__init__.py:16
↓ 11 callersClassMessageQueueServer
lmcache/v1/multiprocess/mq.py:489
↓ 11 callersClassMockConfig
Mock configuration object.
tests/v1/plugin/test_runtime_plugin_launcher.py:18
↓ 11 callersClassMockKVCacheGroup
tests/v1/test_vllm_kv_cache_groups.py:53
next →1–100 of 2,044, ranked by callers