MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodset
(self, key: str, buf: memoryview)
tests/conftest.py:312
Methodset
(self, key, value)
tests/conftest.py:353
FunctionsetConfig
()
lmcache/lmcache_frontend/static/js/app.js:852
FunctionsetLogLevel
()
lmcache/lmcache_frontend/static/js/app.js:765
Functionset_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
Methodset_device
(self, _idx: int)
tests/v1/test_musa_support.py:76
Functionset_future_result
()
tests/v1/multiprocess/test_futures.py:56
Methodset_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
Methodset_presence_cache
Configure a custom cache policy for key presence tracking.
lmcache/v1/storage_backend/nixl_storage_backend.py:1426
Functionset_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
Functionset_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
Methodset_result
(self, result: T)
lmcache/v1/multiprocess/futures.py:192
Methodset_stream
Set the current stream. Args: stream: The stream to make current.
lmcache/v1/platform/cpu/stub_cpu_device.py:282
Methodset_sync
(self, key: str, buf: memoryview)
lmcache/v1/storage_backend/resp_client.py:158
Methodset_sync
(self, key: str, buf: memoryview)
lmcache/v1/storage_backend/native_clients/connector_client_base.py:132
Methodset_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
Methodsetter
()
tests/v1/distributed/test_quota_manager.py:150
Methodsetup
Setup controllers with shared registry.
tests/v1/cache_controller/test_full_sync.py:379
Methodsetup_adapter
(self)
tests/v1/distributed/test_resp_l2_adapter_integration.py:118
Methodsetup_adapter
(self)
tests/v1/distributed/test_mooncake_store_l2_adapter.py:621
Methodsetup_emulator_table
Prepare instance, table, and column family in the emulator.
tests/v1/storage_backend/test_bigtable_integration.py:83
Methodsetup_metrics
Setup file hash specific metrics.
lmcache/v1/lookup_client/record_strategies/file_hash.py:102
Methodsetup_metrics
Setup bloom filter specific metrics.
lmcache/v1/lookup_client/record_strategies/memory_bloom_filter.py:66
Functionshared_contexts
A single context-pair reused across connection-state-insensitive tests.
tests/v1/distributed/transfer_channel/test_nixl_impl.py:69
Functionshm_allocator
Create a MixedMemoryAllocator backed by POSIX shm.
tests/v1/shm_allocator/test_shm_allocator.py:132
Methodshm_byte_length
Return the byte length of this object inside the SHM pool.
lmcache/v1/memory_management.py:341
Methodshm_offset
Return the byte offset of this object inside the SHM pool.
lmcache/v1/memory_management.py:336
Methodshutdown
Shutdown the stats logger gracefully with immediate wake-up
lmcache/observability.py:1984
Methodshutdown
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
Methodshutdown
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
Methodshutdown
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
Methodshutdown
Shutdown the scheduler adapter and its resources.
lmcache/integration/vllm/vllm_multi_process_adapter.py:912
Methodshutdown
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
Methodshutdown
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
Methodshutdown
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
Methodshutdown
Sync shutdown — blocks the calling thread until shutdown is complete.
lmcache/v1/storage_backend/job_executor/pq_executor.py:230
Methodshutdown
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
Methodshutdown
End all leaked spans on bus shutdown.
lmcache/v1/mp_observability/subscribers/tracing/mp_server.py:115
Methodshutdown
End all leaked spans on bus shutdown.
lmcache/v1/mp_observability/subscribers/tracing/cb_server.py:173
Methodshutdown
:class:`EventBus` shutdown hook — close the recorder.
lmcache/v1/mp_observability/trace/recorder.py:130
Functionsignal_handler
(signum, frame)
lmcache/v1/standalone/__main__.py:409
Functionsingle_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
Functionsingle_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
Methodsize_bytes
(self)
tests/v1/storage_backend/test_rust_raw_block_backend.py:60
Methodslab_offset
Byte offset of this chunk within the slab file (== ``meta.address``).
lmcache/v1/memory_management.py:1034
Methodslot_bytes
Return the fixed slot size in bytes.
lmcache/v1/storage_backend/dax/core.py:158
Methodslot_bytes
Return the configured raw-block slot size in bytes.
lmcache/v1/storage_backend/plugins/rust_raw_block_backend.py:179
Methodslots_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
Functionslow_adapter
Create a MockL2Adapter with slow bandwidth for timing tests.
tests/v1/distributed/test_mock_l2_adapter.py:113
Functionslow_ping
( mq_client: object, timeout: float, instance_id: int | None = None )
tests/v1/test_vllm_mp_adapter.py:566
Functionslow_task
()
tests/v1/multiprocess/test_affinity_pool.py:121
Functionsmall_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
Functionsmall_l1_config
Create a small L1ManagerConfig to test memory exhaustion.
tests/v1/distributed/test_distributed_storage_manager.py:86
Functionsmall_l1_config
Create a small L1ManagerConfig to test memory exhaustion.
tests/v1/distributed/test_l1_manager.py:117
Functionsmall_memory_config
Create a small L1MemoryManagerConfig to test memory exhaustion.
tests/v1/distributed/test_distributed_storage_manager.py:65
Functionsmall_memory_config
Create a small L1MemoryManagerConfig to test memory exhaustion.
tests/v1/distributed/test_l1_manager.py:96
Functionsmall_storage_manager_config
Create a small StorageManagerConfig to test memory exhaustion.
tests/v1/distributed/test_distributed_storage_manager.py:107
Functionsnapshot
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
Functionsnapshot_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
Methodsocket_type
Return the socket type for this operation (default: PUSH)
lmcache/tools/controller_benchmark/handlers/base.py:45
Methodsocket_type
(self)
lmcache/tools/controller_benchmark/handlers/p2p_lookup.py:28
Methodsocket_type
(self)
lmcache/tools/controller_benchmark/handlers/register.py:28
Methodsocket_type
(self)
lmcache/tools/controller_benchmark/handlers/heartbeat.py:28
Methodsome_func
(x)
tests/v1/mp_observability/trace/test_decorator.py:95
Methodsplit_layers
Split the key into multiple keys for each layer
lmcache/utils.py:598
Methodspy
()
tests/v1/storage_backend/test_nixl_shared_pool.py:498
Methodspy
(shapes, dtypes, fmt=None, eviction=True, busy_loop=True)
tests/v1/storage_backend/test_nixl_shared_pool.py:561
Functionspy_info
(msg: object, *args: object, **kwargs: object)
tests/v1/test_vllm_mp_adapter.py:399
Methodstart
(self)
tests/cli/commands/bench/test_server_bench.py:540
Methodstart
Start the periodic thread. Returns: Optional[threading.Thread]: The started thread, or None if already running
lmcache/v1/periodic_thread.py:222
Methodstart
(self)
lmcache/v1/distributed/storage_controllers/eviction_controller.py:232
Functionstart_chunk_statistics
(request: Request)
lmcache/v1/internal_api_server/vllm/chunk_statistics_api.py:68
Functionstart_heartbeat_api
Start heartbeat service
lmcache/lmcache_frontend/app.py:693
Methodstart_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
Methodstart_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
Methodstart_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
Methodstart_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
Methodstart_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
Methodstart_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
Methodstart_load_kv
(self, load_metadata: LoadMetadata)
lmcache/integration/sglang/sglang_adapter.py:260
Methodstart_load_kv
Send ``RETRIEVE`` requests for each pending load.
lmcache/integration/tensorrt_llm/tensorrt_mp_adapter.py:391
Methodstart_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
Functionstart_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
Functionstats_monitor
()
tests/test_observability.py:17
Functionstatus
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
Methodstd_duration
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:92
Methodstep
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
Methodstep
Dispatch the next request if semaphore allows.
lmcache/cli/commands/bench/engine_bench/workloads/long_doc_qa.py:238
Methodstep
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
Methodstep
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
Methodstep
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
Methodstop
(self)
tests/cli/commands/bench/test_server_bench.py:543
Methodstop
Stop the periodic thread. Args: timeout: Maximum time to wait for thread termination in seconds
lmcache/v1/periodic_thread.py:253
Methodstop
(self)
lmcache/v1/distributed/storage_controllers/eviction_controller.py:56
Methodstop
(self)
lmcache/v1/distributed/storage_controllers/eviction_controller.py:236
Functionstop_chunk_statistics
(request: Request)
lmcache/v1/internal_api_server/vllm/chunk_statistics_api.py:89
Functionstop_heartbeat_api
Stop heartbeat service
lmcache/lmcache_frontend/app.py:713
Methodstop_loop
()
benchmarks/multi_round_qa/utils.py:105
Methodstop_loop
()
benchmarks/rag/utils.py:113
Methodstop_requested
Whether a stop has been requested (set by stop, reset by start).
lmcache/v1/periodic_thread.py:193
← previousnext →8,601–8,700 of 13,371, ranked by callers