MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodinit_gpu_memory_allocator
( self, size: int, shapes: list[torch.Size], dtypes: list[torch.dtype],
lmcache/v1/memory_management.py:3266
Methodinit_mutable_mapping
Initialize a mutable mapping for cache storage. Return: A mutable mapping that can be used to store cache entries.
lmcache/v1/storage_backend/cache_policy/base_policy.py:17
Methodinit_mutable_mapping
(self)
lmcache/v1/storage_backend/cache_policy/fifo.py:20
Methodinit_mutable_mapping
(self)
lmcache/v1/storage_backend/cache_policy/lru.py:27
Methodinit_mutable_mapping
(self)
lmcache/v1/storage_backend/cache_policy/mru.py:21
Methodinit_wait
Get the initial wait time in seconds.
lmcache/v1/periodic_thread.py:159
FunctioninitializeDocsWidgets
* Initialize docs widgets after the DOM is ready. * * @returns {void}
docs/source/_static/custom.js:162
Methodinitialize_allocator
Create the correct memory allocator for the current storage backend Args: config: The cache engine config me
lmcache/v1/storage_backend/abstract_backend.py:332
Methodinner_adapter
Return the wrapped L2 adapter.
lmcache/v1/distributed/l2_adapters/serde_wrapper.py:301
Methodinstance_id
(self)
lmcache/v1/cache_controller/full_sync_sender.py:105
Methodinterval
Get the execution interval in seconds.
lmcache/v1/periodic_thread.py:149
Methodinvalidate
(self)
lmcache/v1/memory_management.py:663
Methodinvalidate
(self)
lmcache/v1/memory_management.py:915
Methodinvalidate
(self)
lmcache/v1/memory_management.py:1038
Methodis_active
Check if the thread is active (running and recently executed). A thread is considered active if: 1. It is running 2.
lmcache/v1/periodic_thread.py:198
Methodis_allowed
Return True if ``host:port`` matches any registered node. Used by the SSRF guard in :func:`proxy_request` so the proxy only forwards
lmcache/lmcache_frontend/app.py:64
Functionis_available
Check whether a device type is available. Args: device_type: The device type string (e.g., ``"cuda"``). Returns: ``True`` if
lmcache/v1/platform/_registry.py:60
Methodis_closing
Check whether the core is closing or already closed. Returns: ``True`` after close has begun, otherwise ``False``.
lmcache/v1/storage_backend/dax/core.py:187
Methodis_explicitly_requested
Return True when this backend was selected via env var.
setup_extensions/storage_backend_profiles/__init__.py:34
Functionis_false
Check if the given string value is equivalent to 'false'.
lmcache/integration/vllm/utils.py:34
Functionis_false
Check if the given string value is equivalent to 'false'.
lmcache/integration/sglang/utils.py:10
Methodis_healthy
True iff every backing LMCache server is healthy.
lmcache/integration/vllm/vllm_multi_process_adapter.py:679
Methodis_healthy
Whether the LMCache server is healthy. Reflects the most recent heartbeat result. KV cache re-registration on the unhealthy->healthy
lmcache/integration/vllm/vllm_multi_process_adapter.py:1202
Methodis_hot_cache_enabled
Get the current hot cache status of LocalCPUBackend. Returns: bool: True if hot cache is enabled, False otherwise
lmcache/v1/cache_engine.py:372
Methodis_kv_writer
Whether this rank is responsible for storing KV.
lmcache/integration/vllm/vllm_multi_process_adapter.py:346
Methodis_kv_writer
Whether this worker is responsible for storing KV.
lmcache/integration/vllm/vllm_multi_process_adapter.py:1223
Functionis_observability_enabled
Fast check for whether observability is active. Use this to guard expensive event-construction or CUDA host-function scheduling when observab
lmcache/v1/mp_observability/event_bus.py:365
Methodis_open
Return ``True`` if the underlying handle has been opened.
lmcache/v1/storage_backend/hipfile_shim.py:82
Methodis_pinned
(self)
lmcache/utils.py:336
Methodis_pinned
Check whether the memory obj is pinned.
lmcache/v1/memory_management.py:381
Methodis_pinned
(self)
lmcache/v1/memory_management.py:858
Methodis_pinned
(self)
lmcache/v1/memory_management.py:993
Methodis_pinned
(self)
lmcache/v1/memory_management.py:1122
Methodis_syncing
Check if full sync is currently in progress
lmcache/v1/cache_controller/full_sync_sender.py:473
Methodis_valid
(self)
lmcache/v1/memory_management.py:918
Methodis_valid
(self)
lmcache/v1/memory_management.py:1041
Functionisolated_lru_setup
Mock adapter + IsolatedLRU policy + QuotaManager wired through a controller — same topology as production, minus the background thread. Tests
tests/v1/distributed/test_cache_salt_l2_eviction.py:102
Functionisolated_registry
Snapshot the backend table so each test can install fakes without polluting other tests / the production setup.
tests/v1/platform/test_cache_context_dispatch.py:128
Methodkernel_groups
List of :class:`KernelGroupInfo`, one per kernel group.
lmcache/v1/kv_layer_groups.py:412
Methodkey_eligible_filter
(key: ObjectKey)
tests/v1/distributed/test_lru_eviction_policy.py:275
Methodkey_with_tags
(self)
tests/test_utils.py:249
Methodkeys_per_round
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:56
Methodkv_cache_tensor
(self)
lmcache/v1/platform/cuda/cache_context.py:630
Methodkv_caches
(self)
lmcache/v1/manager.py:153
Functionkv_controller
Create a KVController instance for testing.
tests/v1/cache_controller/test_kv_controller.py:28
Methodkv_layer_groups
List of :class:`KernelGroupInfo`, one per kernel group.
lmcache/v1/kv_layer_groups.py:418
Methodkv_layer_groups_manager
Returns the KV layer groups manager.
lmcache/v1/platform/base_cache_context.py:188
Methodkv_operations
(thread_id)
tests/v1/cache_controller/test_registry_tree.py:409
Methodkv_pointers
Returns a tensor of KV cache data pointers.
lmcache/v1/platform/cpu/cache_context.py:235
Methodkv_tensors
Returns the list of per-layer KV cache tensors.
lmcache/v1/platform/base_cache_context.py:160
Methodkv_tp_size
Tensor-parallel size as seen from a single LMCache server.
lmcache/integration/vllm/vllm_multi_process_adapter.py:341
Methodkv_worker_id
Index of the piece of a single token chunk's KV cache that the current worker is responsible for, in ``[0, kv_world_size)``.
lmcache/integration/vllm/vllm_multi_process_adapter.py:332
Methodkv_world_size
Number of pieces a single token chunk's KV cache is split into on the LMCache server storage.
lmcache/integration/vllm/vllm_multi_process_adapter.py:321
Functionkvcache_check
Compute checksum for kvcaches at specified slot_mapping positions. This endpoint is used to verify that stored and retrieved kvcaches are identic
lmcache/v1/internal_api_server/vllm/cache_api.py:571
Functionkvcache_check
Compute MD5 checksums for KV cache blocks, grouped ``chunk_size`` blocks at a time. MP mode addresses KV storage by block IDs natively (same
lmcache/v1/multiprocess/http_apis/cache_api.py:64
Functionkvcache_info
Get information about the current kvcaches. Returns information about the kvcaches structure including layer names, shapes, and device inform
lmcache/v1/internal_api_server/vllm/cache_api.py:840
Functionkvcache_record_slot
Enable or disable KVCache Check slot_mapping logging. This endpoint controls whether the KVCache Check logs (slot_mapping info) are printed w
lmcache/v1/internal_api_server/vllm/cache_api.py:757
Functionl1_manager
Create an L1Manager with a reasonable memory config.
tests/v1/distributed/test_store_controller.py:133
Functionl1_manager
()
tests/v1/distributed/test_runtime_adapters.py:122
Functionl1_manager
Create an L1Manager with a reasonable memory config.
tests/v1/distributed/test_prefetch_controller.py:190
Functionl1_manager
()
tests/v1/distributed/test_l1_l2_state_metrics.py:160
Methodl1_memory_desc
Descriptor of the L1 memory buffer backing this storage manager.
lmcache/v1/distributed/storage_manager.py:720
Functionl1_mgr_synchronized
Decorator to mark L1Manager methods as thread-safe
lmcache/v1/distributed/l1_manager.py:73
Functionl2_storage_manager_config
Create a StorageManagerConfig with one MockL2Adapter.
tests/v1/distributed/test_distributed_storage_manager.py:521
Functionlarge_layout
Create a large MemoryLayoutDesc that will exhaust small memory. Each allocation is 8MB (2M elements * 4 bytes).
tests/v1/distributed/test_l1_memory_manager.py:115
Functionlarge_layout
Create a large MemoryLayoutDesc that will exhaust small memory. Each allocation is 8MB (2M elements * 4 bytes).
tests/v1/distributed/test_distributed_storage_manager.py:127
Functionlarge_layout
Create a large MemoryLayoutDesc that will exhaust small memory. Each allocation is 8MB (2M elements * 4 bytes).
tests/v1/distributed/test_l1_manager.py:136
Methodlast_run_time
Get the timestamp of the last execution.
lmcache/v1/periodic_thread.py:164
Methodlast_summary
Get the summary of the last execution.
lmcache/v1/periodic_thread.py:170
Methodlayer_key
(self)
tests/test_utils.py:399
Methodlayout_desc
The memory layout descriptor for this context.
lmcache/v1/multiprocess/transfer_context/base.py:147
Methodlayout_desc_registry
Registry mapping (model_name, world_size) to MemoryLayoutDesc.
lmcache/v1/multiprocess/engine_context.py:198
Methodlazy_allocator_cls
Lazily import LazyMemoryAllocator to avoid import errors on CPU-only builds.
tests/v1/test_memory_management.py:579
Methodlazy_init_peer_connection
Lazily initialize the connection to a peer. :param local_id: The ID of itself. peer_id: The ID of the peer to connect to.
lmcache/v1/transfer_channel/abstract.py:24
Methodlazy_init_peer_connection
( self, local_id: str, peer_id: str, peer_init_url: str, init_side_msg
lmcache/v1/transfer_channel/py_socket_channel.py:105
Functionlegible_print_engine_kv_format
Print the Engine KV Format in a legible way
lmcache/v1/gpu_connector/utils.py:189
Methodlevel
Get the thread importance level.
lmcache/v1/periodic_thread.py:154
Functionlifespan
Lifespan context manager to handle startup and shutdown events.
examples/disagg_prefill_mp/disagg_proxy_server.py:34
Functionlifespan
Lifespan context manager to handle startup and shutdown events.
examples/disagg_prefill/disagg_proxy_server.py:82
Functionlifespan
Manage the lifecycle of the LMCache HTTP server. On startup: Initialize ZMQ server and cache engine. On shutdown: Clean up ZMQ server re
lmcache/v1/multiprocess/http_server.py:63
Functionlifespan
Start background tasks and clean up resources on shutdown.
lmcache/v1/mp_coordinator/app.py:118
Functionlifespan
(app: FastAPI)
lmcache/v1/api_server/__main__.py:98
Methodlist
(self)
tests/v1/test_health_monitor_fallback_recovery.py:64
Methodlist
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:229
Methodlist
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:388
Methodlist
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:591
Methodlist
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:767
Methodlist
(self)
lmcache/v1/storage_backend/connector/blackhole_connector.py:33
Methodlist
List all keys (not implemented).
lmcache/v1/storage_backend/connector/valkey_connector.py:648
Methodlist
List all keys in the remote server Returns: A list of keys in the remote server
lmcache/v1/storage_backend/connector/base_connector.py:202
Methodlist
(self)
lmcache/v1/storage_backend/connector/mock_connector.py:250
Methodlist
List LMCache keys currently stored under this connector prefix.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:274
Methodlist
(self)
lmcache/v1/storage_backend/connector/mooncakestore_connector.py:822
Methodlist
(self)
lmcache/v1/storage_backend/connector/bigtable_connector.py:876
Methodlist
List operation not supported by ai-toolkit.
lmcache/v1/storage_backend/connector/sagemaker_hyperpod_connector.py:933
Methodlist
(self)
lmcache/v1/storage_backend/connector/lm_connector.py:170
Methodlist
(self)
lmcache/v1/storage_backend/connector/instrumented_connector.py:79
Methodlist
(self)
lmcache/v1/storage_backend/connector/s3_connector.py:652
Methodlist
(self)
lmcache/v1/storage_backend/connector/infinistore_connector.py:172
Methodlist
(self)
lmcache/v1/storage_backend/connector/eic_connector.py:756
← previousnext →7,701–7,800 of 13,371, ranked by callers