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
set
(self, key: str, buf: memoryview)
tests/conftest.py:312
Method
set
(self, key, value)
tests/conftest.py:353
Function
setConfig
()
lmcache/lmcache_frontend/static/js/app.js:852
Function
setLogLevel
()
lmcache/lmcache_frontend/static/js/app.js:765
Function
set_config
Set config values dynamically. NOTE: Currently experimental — all configs are mutable at runtime by default unless explicitly set "mutable":
lmcache/v1/internal_api_server/vllm/conf_api.py:90
Method
set_device
(self, _idx: int)
tests/v1/test_musa_support.py:76
Function
set_future_result
()
tests/v1/multiprocess/test_futures.py:56
Method
set_hot_cache
Dynamically enable or disable the LocalCPUBackend hot cache. When disabled, the existing hot cache entries will be cleared a
lmcache/v1/cache_engine.py:359
Method
set_presence_cache
Configure a custom cache policy for key presence tracking.
lmcache/v1/storage_backend/nixl_storage_backend.py:1426
Function
set_quota
Create or update a quota for the given ``cache_salt``. Body: ``{"limit_gb": <float>}`` (required, non-negative).
lmcache/v1/multiprocess/http_apis/quota_api.py:68
Function
set_quota
Create or update a quota. Args: cache_salt: Tenant identifier; use ``_default`` for the empty salt. body: Quota limit to apply.
lmcache/v1/mp_coordinator/http_apis/l2_api.py:72
Method
set_result
(self, result: T)
lmcache/v1/multiprocess/futures.py:192
Method
set_stream
Set the current stream. Args: stream: The stream to make current.
lmcache/v1/platform/cpu/stub_cpu_device.py:282
Method
set_sync
(self, key: str, buf: memoryview)
lmcache/v1/storage_backend/resp_client.py:158
Method
set_sync
(self, key: str, buf: memoryview)
lmcache/v1/storage_backend/native_clients/connector_client_base.py:132
Method
set_used_size
Narrow the logical size to ``n`` bytes after a write. After this call, ``get_size()`` returns ``n`` and ``byte_array`` exposes exactl
lmcache/v1/memory_management.py:674
Method
setter
()
tests/v1/distributed/test_quota_manager.py:150
Method
setup
Setup controllers with shared registry.
tests/v1/cache_controller/test_full_sync.py:379
Method
setup_adapter
(self)
tests/v1/distributed/test_resp_l2_adapter_integration.py:118
Method
setup_adapter
(self)
tests/v1/distributed/test_mooncake_store_l2_adapter.py:621
Method
setup_emulator_table
Prepare instance, table, and column family in the emulator.
tests/v1/storage_backend/test_bigtable_integration.py:83
Method
setup_metrics
Setup file hash specific metrics.
lmcache/v1/lookup_client/record_strategies/file_hash.py:102
Method
setup_metrics
Setup bloom filter specific metrics.
lmcache/v1/lookup_client/record_strategies/memory_bloom_filter.py:66
Function
shared_contexts
A single context-pair reused across connection-state-insensitive tests.
tests/v1/distributed/transfer_channel/test_nixl_impl.py:69
Function
shm_allocator
Create a MixedMemoryAllocator backed by POSIX shm.
tests/v1/shm_allocator/test_shm_allocator.py:132
Method
shm_byte_length
Return the byte length of this object inside the SHM pool.
lmcache/v1/memory_management.py:341
Method
shm_offset
Return the byte offset of this object inside the SHM pool.
lmcache/v1/memory_management.py:336
Method
shutdown
Shutdown the stats logger gracefully with immediate wake-up
lmcache/observability.py:1984
Method
shutdown
Shutdown the connector. This is called when the worker process is shutting down to ensure that all the async operations are c
lmcache/integration/vllm/lmcache_mp_connector.py:852
Method
shutdown
Shutdown the connector. This is called when the worker process is shutting down to ensure that all the async operations are c
lmcache/integration/vllm/lmcache_mp_connector_0201.py:723
Method
shutdown
Shutdown the connector. This is called when the worker process is shutting down to ensure that all the async operations are c
lmcache/integration/vllm/lmcache_mp_connector_0180.py:683
Method
shutdown
Shutdown the scheduler adapter and its resources.
lmcache/integration/vllm/vllm_multi_process_adapter.py:912
Method
shutdown
Shutdown the LMCache MP worker adapter. Stops the heartbeat (if started) before UNREGISTER: no new ping on the closing mq_cl
lmcache/integration/vllm/vllm_multi_process_adapter.py:1698
Method
shutdown
Shutdown the connector. This is called when the worker process is shutting down to ensure that all the async operations are c
lmcache/integration/vllm/lmcache_connector_v1_085.py:94
Method
shutdown
Shutdown the connector. This is called when the worker process is shutting down to ensure that all the async operations are c
lmcache/integration/vllm/lmcache_connector_v1.py:138
Method
shutdown
Sync shutdown — blocks the calling thread until shutdown is complete.
lmcache/v1/storage_backend/job_executor/pq_executor.py:230
Method
shutdown
Clean up the executor, optionally waiting for currently running jobs to finish. :param wait: If True, wait for currently running job
lmcache/v1/storage_backend/job_executor/base_executor.py:27
Method
shutdown
End all leaked spans on bus shutdown.
lmcache/v1/mp_observability/subscribers/tracing/mp_server.py:115
Method
shutdown
End all leaked spans on bus shutdown.
lmcache/v1/mp_observability/subscribers/tracing/cb_server.py:173
Method
shutdown
:class:`EventBus` shutdown hook — close the recorder.
lmcache/v1/mp_observability/trace/recorder.py:130
Function
signal_handler
(signum, frame)
lmcache/v1/standalone/__main__.py:409
Function
single_layer_kv_transfer
Vectorized Python fallback for single_layer_kv_transfer (eliminates per-token loops). Transfers KV data between LMCache buffer and a
lmcache/python_ops_fallback.py:1746
Function
single_layer_kv_transfer_sgl
Python fallback implementation of single_layer_kv_transfer_sgl. Args: lmc_key_value_cache: [num_tokens, 2, num_heads*hea
lmcache/python_ops_fallback.py:1862
Method
size_bytes
(self)
tests/v1/storage_backend/test_rust_raw_block_backend.py:60
Method
slab_offset
Byte offset of this chunk within the slab file (== ``meta.address``).
lmcache/v1/memory_management.py:1034
Method
slot_bytes
Return the fixed slot size in bytes.
lmcache/v1/storage_backend/dax/core.py:158
Method
slot_bytes
Return the configured raw-block slot size in bytes.
lmcache/v1/storage_backend/plugins/rust_raw_block_backend.py:179
Method
slots_per_block
Physical slots in one paged chunk of this group, detected from the registered KV tensors at registration time (the batch-size dimensio
lmcache/v1/kv_layer_groups.py:219
Function
slow_adapter
Create a MockL2Adapter with slow bandwidth for timing tests.
tests/v1/distributed/test_mock_l2_adapter.py:113
Function
slow_ping
( mq_client: object, timeout: float, instance_id: int | None = None )
tests/v1/test_vllm_mp_adapter.py:566
Function
slow_task
()
tests/v1/multiprocess/test_affinity_pool.py:121
Function
small_config
Create a small L1MemoryManagerConfig to test memory exhaustion. Note: Minimum size is 64MB due to LazyMemoryAllocator's PIN_CHUNK_SIZE.
tests/v1/distributed/test_l1_memory_manager.py:70
Function
small_l1_config
Create a small L1ManagerConfig to test memory exhaustion.
tests/v1/distributed/test_distributed_storage_manager.py:86
Function
small_l1_config
Create a small L1ManagerConfig to test memory exhaustion.
tests/v1/distributed/test_l1_manager.py:117
Function
small_memory_config
Create a small L1MemoryManagerConfig to test memory exhaustion.
tests/v1/distributed/test_distributed_storage_manager.py:65
Function
small_memory_config
Create a small L1MemoryManagerConfig to test memory exhaustion.
tests/v1/distributed/test_l1_manager.py:96
Function
small_storage_manager_config
Create a small StorageManagerConfig to test memory exhaustion.
tests/v1/distributed/test_distributed_storage_manager.py:107
Function
snapshot
Return a deep-copy of the registry tables. Test suites use this to install backend overrides without leaking state across tests; pair with :f
lmcache/v1/platform/_registry.py:104
Function
snapshot_backends
Return a shallow copy of the backend table. Pair with :func:`restore_backends` in test fixtures so installing fakes for one test does not lea
lmcache/v1/platform/cache_context.py:120
Method
socket_type
Return the socket type for this operation (default: PUSH)
lmcache/tools/controller_benchmark/handlers/base.py:45
Method
socket_type
(self)
lmcache/tools/controller_benchmark/handlers/p2p_lookup.py:28
Method
socket_type
(self)
lmcache/tools/controller_benchmark/handlers/register.py:28
Method
socket_type
(self)
lmcache/tools/controller_benchmark/handlers/heartbeat.py:28
Method
some_func
(x)
tests/v1/mp_observability/trace/test_decorator.py:95
Method
split_layers
Split the key into multiple keys for each layer
lmcache/utils.py:598
Method
spy
()
tests/v1/storage_backend/test_nixl_shared_pool.py:498
Method
spy
(shapes, dtypes, fmt=None, eviction=True, busy_loop=True)
tests/v1/storage_backend/test_nixl_shared_pool.py:561
Function
spy_info
(msg: object, *args: object, **kwargs: object)
tests/v1/test_vllm_mp_adapter.py:399
Method
start
(self)
tests/cli/commands/bench/test_server_bench.py:540
Method
start
Start the periodic thread. Returns: Optional[threading.Thread]: The started thread, or None if already running
lmcache/v1/periodic_thread.py:222
Method
start
(self)
lmcache/v1/distributed/storage_controllers/eviction_controller.py:232
Function
start_chunk_statistics
(request: Request)
lmcache/v1/internal_api_server/vllm/chunk_statistics_api.py:68
Function
start_heartbeat_api
Start heartbeat service
lmcache/lmcache_frontend/app.py:693
Method
start_load_kv
Start loading the KV cache from the connector to vLLM's paged KV buffer. This is called from the forward context before the f
lmcache/integration/vllm/lmcache_mp_connector.py:701
Method
start_load_kv
Start loading the KV cache from the connector to vLLM's paged KV buffer. This is called from the forward context before the f
lmcache/integration/vllm/lmcache_mp_connector_0201.py:569
Method
start_load_kv
Start loading the KV cache from the connector to vLLM's paged KV buffer. This is called from the forward context before the f
lmcache/integration/vllm/lmcache_mp_connector_0180.py:548
Method
start_load_kv
Start loading the KV cache from the connector to vLLM's paged KV buffer. This is called from the forward context before the f
lmcache/integration/vllm/lmcache_connector_v1_085.py:36
Method
start_load_kv
Start loading the KV cache from the connector to vLLM's paged KV buffer. This is called from the forward context before the f
lmcache/integration/vllm/lmcache_connector_v1.py:60
Method
start_load_kv
Start loading the KV cache from the connector buffer to vLLM's paged KV buffer. Args: forward_context (ForwardContext): t
lmcache/integration/vllm/vllm_v1_adapter.py:763
Method
start_load_kv
(self, load_metadata: LoadMetadata)
lmcache/integration/sglang/sglang_adapter.py:260
Method
start_load_kv
Send ``RETRIEVE`` requests for each pending load.
lmcache/integration/tensorrt_llm/tensorrt_mp_adapter.py:391
Method
start_load_kv
Load KV blocks from LMCache into the GPU paged cache. Retrieves all pending blocks on the load stream, then syncs the forward-pass st
lmcache/integration/tensorrt_llm/tensorrt_adapter.py:302
Function
start_loop_in_thread_with_exceptions
Run an event loop forever with an exception handler. Args: loop: Event loop to bind to the current thread and run.
lmcache/utils.py:754
Function
stats_monitor
()
tests/test_observability.py:17
Function
status
Detailed status endpoint for inspecting internal state of all MP components (L1 cache, L2 adapters, controllers, sessions).
lmcache/v1/multiprocess/http_apis/status_api.py:13
Method
std_duration
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:92
Method
step
Dispatch the next request at the QPS-controlled rate. Returns: Next wakeup time offset, or negative when done.
lmcache/cli/commands/bench/engine_bench/workloads/multi_round_chat.py:266
Method
step
Dispatch the next request if semaphore allows.
lmcache/cli/commands/bench/engine_bench/workloads/long_doc_qa.py:238
Method
step
Send one pass-2 request inline, sequentially. Awaiting the request inside ``step`` enforces strict one-request-at-a-time dispatch. R
lmcache/cli/commands/bench/engine_bench/workloads/prefix_suffix_tuner.py:604
Method
step
Dispatch all requests at once on the first call. Returns: 0.0 while tasks are pending, -1.0 when all done.
lmcache/cli/commands/bench/engine_bench/workloads/random_prefill.py:122
Method
step
Dispatch the next permutation request if semaphore allows. Args: time_offset: Seconds since benchmark start (unused). Re
lmcache/cli/commands/bench/engine_bench/workloads/long_doc_permutator.py:352
Method
stop
(self)
tests/cli/commands/bench/test_server_bench.py:543
Method
stop
Stop the periodic thread. Args: timeout: Maximum time to wait for thread termination in seconds
lmcache/v1/periodic_thread.py:253
Method
stop
(self)
lmcache/v1/distributed/storage_controllers/eviction_controller.py:56
Method
stop
(self)
lmcache/v1/distributed/storage_controllers/eviction_controller.py:236
Function
stop_chunk_statistics
(request: Request)
lmcache/v1/internal_api_server/vllm/chunk_statistics_api.py:89
Function
stop_heartbeat_api
Stop heartbeat service
lmcache/lmcache_frontend/app.py:713
Method
stop_loop
()
benchmarks/multi_round_qa/utils.py:105
Method
stop_loop
()
benchmarks/rag/utils.py:113
Method
stop_requested
Whether a stop has been requested (set by stop, reset by start).
lmcache/v1/periodic_thread.py:193
← previous
next →
8,601–8,700 of 13,371, ranked by callers