Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LMCache/LMCache
/ functions
Functions
13,371 in github.com/LMCache/LMCache
⨍
Functions
13,371
◇
Types & classes
2,044
↳
Endpoints
181
Method
init_gpu_memory_allocator
( self, size: int, shapes: list[torch.Size], dtypes: list[torch.dtype],
lmcache/v1/memory_management.py:3266
Method
init_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
Method
init_mutable_mapping
(self)
lmcache/v1/storage_backend/cache_policy/fifo.py:20
Method
init_mutable_mapping
(self)
lmcache/v1/storage_backend/cache_policy/lru.py:27
Method
init_mutable_mapping
(self)
lmcache/v1/storage_backend/cache_policy/mru.py:21
Method
init_wait
Get the initial wait time in seconds.
lmcache/v1/periodic_thread.py:159
Function
initializeDocsWidgets
* Initialize docs widgets after the DOM is ready. * * @returns {void}
docs/source/_static/custom.js:162
Method
initialize_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
Method
inner_adapter
Return the wrapped L2 adapter.
lmcache/v1/distributed/l2_adapters/serde_wrapper.py:301
Method
instance_id
(self)
lmcache/v1/cache_controller/full_sync_sender.py:105
Method
interval
Get the execution interval in seconds.
lmcache/v1/periodic_thread.py:149
Method
invalidate
(self)
lmcache/v1/memory_management.py:663
Method
invalidate
(self)
lmcache/v1/memory_management.py:915
Method
invalidate
(self)
lmcache/v1/memory_management.py:1038
Method
is_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
Method
is_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
Function
is_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
Method
is_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
Method
is_explicitly_requested
Return True when this backend was selected via env var.
setup_extensions/storage_backend_profiles/__init__.py:34
Function
is_false
Check if the given string value is equivalent to 'false'.
lmcache/integration/vllm/utils.py:34
Function
is_false
Check if the given string value is equivalent to 'false'.
lmcache/integration/sglang/utils.py:10
Method
is_healthy
True iff every backing LMCache server is healthy.
lmcache/integration/vllm/vllm_multi_process_adapter.py:679
Method
is_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
Method
is_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
Method
is_kv_writer
Whether this rank is responsible for storing KV.
lmcache/integration/vllm/vllm_multi_process_adapter.py:346
Method
is_kv_writer
Whether this worker is responsible for storing KV.
lmcache/integration/vllm/vllm_multi_process_adapter.py:1223
Function
is_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
Method
is_open
Return ``True`` if the underlying handle has been opened.
lmcache/v1/storage_backend/hipfile_shim.py:82
Method
is_pinned
(self)
lmcache/utils.py:336
Method
is_pinned
Check whether the memory obj is pinned.
lmcache/v1/memory_management.py:381
Method
is_pinned
(self)
lmcache/v1/memory_management.py:858
Method
is_pinned
(self)
lmcache/v1/memory_management.py:993
Method
is_pinned
(self)
lmcache/v1/memory_management.py:1122
Method
is_syncing
Check if full sync is currently in progress
lmcache/v1/cache_controller/full_sync_sender.py:473
Method
is_valid
(self)
lmcache/v1/memory_management.py:918
Method
is_valid
(self)
lmcache/v1/memory_management.py:1041
Function
isolated_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
Function
isolated_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
Method
kernel_groups
List of :class:`KernelGroupInfo`, one per kernel group.
lmcache/v1/kv_layer_groups.py:412
Method
key_eligible_filter
(key: ObjectKey)
tests/v1/distributed/test_lru_eviction_policy.py:275
Method
key_with_tags
(self)
tests/test_utils.py:249
Method
keys_per_round
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:56
Method
kv_cache_tensor
(self)
lmcache/v1/platform/cuda/cache_context.py:630
Method
kv_caches
(self)
lmcache/v1/manager.py:153
Function
kv_controller
Create a KVController instance for testing.
tests/v1/cache_controller/test_kv_controller.py:28
Method
kv_layer_groups
List of :class:`KernelGroupInfo`, one per kernel group.
lmcache/v1/kv_layer_groups.py:418
Method
kv_layer_groups_manager
Returns the KV layer groups manager.
lmcache/v1/platform/base_cache_context.py:188
Method
kv_operations
(thread_id)
tests/v1/cache_controller/test_registry_tree.py:409
Method
kv_pointers
Returns a tensor of KV cache data pointers.
lmcache/v1/platform/cpu/cache_context.py:235
Method
kv_tensors
Returns the list of per-layer KV cache tensors.
lmcache/v1/platform/base_cache_context.py:160
Method
kv_tp_size
Tensor-parallel size as seen from a single LMCache server.
lmcache/integration/vllm/vllm_multi_process_adapter.py:341
Method
kv_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
Method
kv_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
Function
kvcache_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
Function
kvcache_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
Function
kvcache_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
Function
kvcache_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
Function
l1_manager
Create an L1Manager with a reasonable memory config.
tests/v1/distributed/test_store_controller.py:133
Function
l1_manager
()
tests/v1/distributed/test_runtime_adapters.py:122
Function
l1_manager
Create an L1Manager with a reasonable memory config.
tests/v1/distributed/test_prefetch_controller.py:190
Function
l1_manager
()
tests/v1/distributed/test_l1_l2_state_metrics.py:160
Method
l1_memory_desc
Descriptor of the L1 memory buffer backing this storage manager.
lmcache/v1/distributed/storage_manager.py:720
Function
l1_mgr_synchronized
Decorator to mark L1Manager methods as thread-safe
lmcache/v1/distributed/l1_manager.py:73
Function
l2_storage_manager_config
Create a StorageManagerConfig with one MockL2Adapter.
tests/v1/distributed/test_distributed_storage_manager.py:521
Function
large_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
Function
large_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
Function
large_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
Method
last_run_time
Get the timestamp of the last execution.
lmcache/v1/periodic_thread.py:164
Method
last_summary
Get the summary of the last execution.
lmcache/v1/periodic_thread.py:170
Method
layer_key
(self)
tests/test_utils.py:399
Method
layout_desc
The memory layout descriptor for this context.
lmcache/v1/multiprocess/transfer_context/base.py:147
Method
layout_desc_registry
Registry mapping (model_name, world_size) to MemoryLayoutDesc.
lmcache/v1/multiprocess/engine_context.py:198
Method
lazy_allocator_cls
Lazily import LazyMemoryAllocator to avoid import errors on CPU-only builds.
tests/v1/test_memory_management.py:579
Method
lazy_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
Method
lazy_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
Function
legible_print_engine_kv_format
Print the Engine KV Format in a legible way
lmcache/v1/gpu_connector/utils.py:189
Method
level
Get the thread importance level.
lmcache/v1/periodic_thread.py:154
Function
lifespan
Lifespan context manager to handle startup and shutdown events.
examples/disagg_prefill_mp/disagg_proxy_server.py:34
Function
lifespan
Lifespan context manager to handle startup and shutdown events.
examples/disagg_prefill/disagg_proxy_server.py:82
Function
lifespan
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
Function
lifespan
Start background tasks and clean up resources on shutdown.
lmcache/v1/mp_coordinator/app.py:118
Function
lifespan
(app: FastAPI)
lmcache/v1/api_server/__main__.py:98
Method
list
(self)
tests/v1/test_health_monitor_fallback_recovery.py:64
Method
list
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:229
Method
list
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:388
Method
list
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:591
Method
list
(self)
lmcache/v1/storage_backend/connector/redis_connector.py:767
Method
list
(self)
lmcache/v1/storage_backend/connector/blackhole_connector.py:33
Method
list
List all keys (not implemented).
lmcache/v1/storage_backend/connector/valkey_connector.py:648
Method
list
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
Method
list
(self)
lmcache/v1/storage_backend/connector/mock_connector.py:250
Method
list
List LMCache keys currently stored under this connector prefix.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:274
Method
list
(self)
lmcache/v1/storage_backend/connector/mooncakestore_connector.py:822
Method
list
(self)
lmcache/v1/storage_backend/connector/bigtable_connector.py:876
Method
list
List operation not supported by ai-toolkit.
lmcache/v1/storage_backend/connector/sagemaker_hyperpod_connector.py:933
Method
list
(self)
lmcache/v1/storage_backend/connector/lm_connector.py:170
Method
list
(self)
lmcache/v1/storage_backend/connector/instrumented_connector.py:79
Method
list
(self)
lmcache/v1/storage_backend/connector/s3_connector.py:652
Method
list
(self)
lmcache/v1/storage_backend/connector/infinistore_connector.py:172
Method
list
(self)
lmcache/v1/storage_backend/connector/eic_connector.py:756
← previous
next →
7,701–7,800 of 13,371, ranked by callers