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
Function
restricted_import
(name, globals=None, locals=None, fromlist=(), level=0)
lmcache/v1/internal_api_server/common/run_script_api.py:55
Method
result
Get the result of the future. Args: timeout (Optional[float]): Maximum time to wait for the UNDERLYING R
lmcache/v1/multiprocess/futures.py:150
Function
retrieve
Retrieve KV cache data from the LMCache engine. This endpoint provides a way to retrieve KV cache data by generating mock tokens. Args:
lmcache/v1/internal_api_server/vllm/cache_api.py:510
Function
retrieve_handler
Dummy handler for RETRIEVE requests. Args: key: Cache key to retrieve gpu_id: GPU device ID gpu_block_ids: GPU block
tests/v1/multiprocess/test_mq_handler_helpers.py:146
Method
retrieve_kv
Phase 2 of the two-phase load — fires RETRIEVE only. Reuses the matched-token count cached by a prior ``lookup_kv`` for the same ``re
lmcache/integration/sglang/multi_process_adapter.py:410
Method
role
(self)
lmcache/integration/vllm/lmcache_mp_connector.py:658
Method
role
(self)
lmcache/integration/vllm/lmcache_mp_connector_0201.py:537
Method
role
(self)
lmcache/integration/vllm/lmcache_mp_connector_0180.py:516
Function
root
Basic liveness check endpoint. Returns: dict: A dictionary containing the status and service name.
lmcache/v1/multiprocess/http_apis/root_api.py:9
Function
rotary_embedding_k_fused
Apply fused rotary embedding undo/redo to key tensor in-place. Reverses the rotary embedding at old_positions and applies the rotary embeddin
lmcache/python_ops_fallback.py:2468
Function
router_endpoint
Allocate an ephemeral inproc/tcp endpoint for the ROUTER.
tests/cli/commands/bench/test_server_bench.py:310
Function
run
()
tests/benchmarks/test_cachegen.py:66
Function
run
()
tests/benchmarks/test_xpu_kernels_microbench.py:51
Method
run
(self, coro_fn: Coroutine[Any, Any, Any], *args, **kwargs)
lmcache/v1/storage_backend/storage_manager.py:205
Function
run_func
(tokens, slot_mappings)
tests/benchmarks/test_benchmark.py:185
Function
run_gen_mode
Run key generation mode
lmcache/v1/check/check_mode_gen.py:21
Function
run_loop
()
tests/v1/storage_backend/test_p2p_backend_with_controller.py:227
Method
run_loop
()
benchmarks/multi_round_qa/utils.py:92
Method
run_loop
()
benchmarks/rag/utils.py:100
Function
run_mock_controller
Run a mock controller that handles P2P lookup requests
tests/v1/storage_backend/test_p2p_backend_with_controller.py:133
Function
run_script
(request: Request)
lmcache/v1/internal_api_server/common/run_script_api.py:32
Function
run_telemetry_server
Run the telemetry server in a separate thread.
examples/disagg_prefill_mp/disagg_proxy_server.py:434
Method
run_test
()
tests/v1/storage_backend/test_audit_connector.py:254
Function
run_test_mode
Run connector test mode
lmcache/v1/check/check_mode_test_remote.py:92
Function
run_test_mode
Run L2 adapter test mode. Requires ``l2_adapter`` in *kwargs* (list of JSON strings from ``--l2-adapter``).
lmcache/v1/check/check_mode_test_l2_adapter.py:142
Function
run_test_mode
Run connector test mode
lmcache/v1/check/check_mode_test_storage_manager.py:95
Method
same_type
(a, b)
lmcache/v1/multiprocess/mq.py:653
Function
sample_worker_info
Create sample worker info for testing.
tests/v1/cache_controller/conftest.py:445
Function
sampled_subscriber
Subscriber with 0% sample rate — nothing should be tracked.
tests/v1/mp_observability/subscribers/metrics/test_l1_lifecycle.py:75
Method
save_kv_layer
Start saving a layer of KV cache from vLLM's paged buffer to the connector. This is called from within attention layer to ena
lmcache/integration/vllm/lmcache_mp_connector.py:754
Method
save_kv_layer
Start saving a layer of KV cache from vLLM's paged buffer to the connector. This is called from within attention layer to ena
lmcache/integration/vllm/lmcache_mp_connector_0201.py:622
Method
save_kv_layer
Start saving a layer of KV cache from vLLM's paged buffer to the connector. This is called from within attention layer to ena
lmcache/integration/vllm/lmcache_mp_connector_0180.py:593
Method
save_kv_layer
Start saving the a layer of KV cache from vLLM's paged buffer to the connector. This is called from within attention layer to
lmcache/integration/vllm/lmcache_connector_v1_085.py:61
Method
save_kv_layer
Start saving the a layer of KV cache from vLLM's paged buffer to the connector. This is called from within attention layer to
lmcache/integration/vllm/lmcache_connector_v1.py:85
Method
save_kv_layer
No-op — saves are batched in :meth:`wait_for_save`.
lmcache/integration/tensorrt_llm/tensorrt_mp_adapter.py:437
Method
save_kv_layer
No-op — saves are batched in :meth:`wait_for_save`.
lmcache/integration/tensorrt_llm/tensorrt_adapter.py:332
Method
scan
(self, cursor=0, match=None)
tests/conftest.py:193
Function
scenario_alloc_free_numa_ptr
Test alloc_numa_ptr and free_numa_ptr round-trip.
tests/v1/test_python_ops_fallback.py:1659
Function
scenario_alloc_free_pinned_numa_ptr
Test alloc_pinned_numa_ptr and free_pinned_numa_ptr round-trip.
tests/v1/test_python_ops_fallback.py:1675
Function
scenario_alloc_free_pinned_ptr
Test alloc_pinned_ptr and free_pinned_ptr round-trip.
tests/v1/test_python_ops_fallback.py:1643
Function
scenario_alloc_free_shm_pinned_ptr
Test alloc_shm_pinned_ptr and free_shm_pinned_ptr round-trip.
tests/v1/test_python_ops_fallback.py:1693
Function
scenario_calculate_cdf
Test calculate_cdf for multiple bin counts.
tests/v1/test_python_ops_fallback.py:147
Function
scenario_decode_fast_new
Test decode_fast_new correctly decodes a round-tripped encoded stream.
tests/v1/test_python_ops_fallback.py:633
Function
scenario_decode_fast_prefsum
Test decode_fast_prefsum correctly decodes with prefix-sum offsets.
tests/v1/test_python_ops_fallback.py:708
Function
scenario_dispatcher_integration
Test submit_callback_to_stream -> DeviceHostFuncDispatcher -> handler. Works on all backends: submit_callback_to_stream only reads stream.ptr, so
tests/v1/test_python_ops_fallback.py:1768
Function
scenario_encode_fast_new
Test encode_fast_new produces valid, non-empty encoded output.
tests/v1/test_python_ops_fallback.py:570
Function
scenario_get_gpu_pci_bus_id
Test get_gpu_pci_bus_id returns a valid string on CUDA backends.
tests/v1/test_python_ops_fallback.py:128
Function
scenario_lmcache_memcpy_async
Test lmcache_memcpy_async for H2D and D2H memory transfers. Tests both pointer mode (int pointers) and tensor mode (torch.Tensor objects). Us
tests/v1/test_python_ops_fallback.py:232
Function
scenario_load_and_reshape_flash
Test load_and_reshape_flash extracts KV cache tokens into contiguous buffer.
tests/v1/test_python_ops_fallback.py:346
Function
scenario_multi_layer_block_kv_transfer
Test multi_layer_block_kv_transfer across all GPU KV formats. Exercises the block-based transfer path for: - NHD per-layer format (D2H and H2
tests/v1/test_python_ops_fallback.py:1805
Function
scenario_multi_layer_kv_transfer
Test multi_layer_kv_transfer for multiple paged KV formats and directions. Tests both pointer mode (torch.Tensor of int64 pointers) and tensor li
tests/v1/test_python_ops_fallback.py:1159
Function
scenario_multi_layer_kv_transfer_unilateral
Test multi_layer_kv_transfer_unilateral for non-interleaved K/V pointers. Tests both pointer mode (torch.Tensor of int64 pointers) and tensor lis
tests/v1/test_python_ops_fallback.py:1385
Function
scenario_record_drain_completion
Test record_completion_on_stream / drain_recorded_completions contracts. Verified backend-agnostic: native c_ops uses cudaLaunchHostFunc on the
tests/v1/test_python_ops_fallback.py:1736
Function
scenario_record_drain_event
Test record_event_on_stream / drain_recorded_events contracts. Verified backend-agnostic: native c_ops uses cudaLaunchHostFunc on the default
tests/v1/test_python_ops_fallback.py:2651
Function
scenario_reshape_and_cache_back_flash
Test reshape_and_cache_back_flash writes tokens back into paged KV cache.
tests/v1/test_python_ops_fallback.py:453
Function
scenario_rotary_embedding_k_fused
Test rotary_embedding_k_fused for both NeoX and GPT-J rotation styles.
tests/v1/test_python_ops_fallback.py:185
Function
scenario_single_layer_kv_transfer
Test single_layer_kv_transfer for multiple KV formats and directions.
tests/v1/test_python_ops_fallback.py:807
Function
scenario_single_layer_kv_transfer_sgl
Test single_layer_kv_transfer_sgl for SGLang KV format.
tests/v1/test_python_ops_fallback.py:1009
Function
scenario_transfer_direction_enum
Test TransferDirection enum has distinct H2D and D2H members.
tests/v1/test_python_ops_fallback.py:1711
Method
scheduler_client
Create a test client with mocked scheduler manager.
tests/v1/internal_api_server/test_lookup_api.py:61
Method
script
(sm: StorageManager)
tests/cli/commands/trace/test_driver.py:148
Method
script
(sm: StorageManager)
tests/cli/commands/trace/test_driver.py:231
Method
script
(sm: StorageManager)
tests/cli/commands/trace/test_driver.py:304
Method
script_dir
Get the test scripts directory.
tests/v1/internal_api_server/test_run_script.py:76
Method
second_reader
()
tests/v1/cache_controller/test_locks.py:236
Method
seek
(self, offset, whence=0)
lmcache/v1/storage_backend/connector/s3_connector.py:52
Method
select_l1_deletions
(self, keys)
tests/v1/distributed/test_store_controller.py:530
Method
select_l1_deletions
(self, keys)
tests/v1/distributed/test_store_controller.py:565
Method
select_l1_deletions
(self, keys)
tests/v1/distributed/test_store_controller.py:616
Method
select_l1_deletions
Delete all keys from L1 after successful L2 store. Args: keys: Keys that were successfully stored to L2. Return
lmcache/v1/distributed/storage_controllers/store_policy.py:196
Method
select_store_targets
(self, keys, adapters)
tests/v1/distributed/test_store_controller.py:527
Method
select_store_targets
(self, keys, adapters)
tests/v1/distributed/test_store_controller.py:562
Method
select_store_targets
(self, keys, adapters)
tests/v1/distributed/test_store_controller.py:610
Method
selected
The single path chosen for this worker.
lmcache/v1/storage_backend/path_sharder.py:103
Method
send_and_receive
(s, msg)
lmcache/v1/cache_controller/executor.py:456
Method
send_and_recv_all
Send msg to all ranks and collect responses. Each element of msg is serialized via msgpack before sending. On timeout or ZMQ error, r
lmcache/v1/rpc/zmq_transport.py:98
Method
send_metadata_message
(self)
lmcache/usage_context.py:160
Method
send_response
Send response back via ROUTER socket.
lmcache/v1/rpc/zmq_transport.py:204
Method
send_response_to_scheduler
( self, lookup_id: str, retrieved_length: int, )
tests/v1/utils.py:751
Method
send_response_to_scheduler
( self, lookup_id: str, retrieved_length: int )
tests/v1/test_cache_engine.py:1002
Method
send_response_to_scheduler
(self, lookup_id: str, retrieved_length: int)
tests/v1/storage_backend/test_storage_manager.py:58
Method
send_tcp
(cmd)
tests/v1/shm_allocator/test_shm_allocator.py:425
Method
serialize
(self, src, dst)
tests/v1/distributed/serde/test_async_processor.py:34
Method
serialize
(self, src, dst)
tests/v1/distributed/serde/test_async_processor.py:159
Method
serialize
(self, src, dst)
tests/v1/distributed/serde/test_async_processor.py:201
Method
serialize
(self, src, dst)
tests/v1/distributed/serde/test_async_processor.py:241
Method
serialize
(self)
lmcache/v1/protocol.py:284
Method
serialize
(self, src: MemoryObjGroup, dst: MemoryObj)
lmcache/v1/distributed/serde/multi.py:193
Method
serialize
(self, memory_obj: MemoryObj)
lmcache/v1/storage_backend/naive_serde/kivi_serde.py:11
Method
serialize
Serialize a KV_2LTD MemoryObj to CACHEGEN_BINARY MemoryObj. Input: memory_obj: the memory object to be serialized.
lmcache/v1/storage_backend/naive_serde/cachegen_encoder.py:42
Method
serialize
(self, memory_obj: MemoryObj)
lmcache/v1/storage_backend/naive_serde/naive_serde.py:11
Function
serve_frontend
Serve the Controller frontend HTML page.
lmcache/v1/api_server/__main__.py:137
Function
serve_frontend
Return frontend homepage. When a node supplier URL is configured, trigger a throttled background-style refresh so opening the homepage repeat
lmcache/lmcache_frontend/app.py:817
Function
server_process
Fixture that starts the cache server in a separate process. The server runs for the entire test module.
tests/v1/multiprocess/test_cache_server.py:254
Function
server_process_runner
Entry point for the server process.
tests/v1/multiprocess/test_cache_server.py:230
Function
session
A fresh Session instance.
tests/v1/multiprocess/test_session.py:24
Function
session_manager
A SessionManager with short TTL for testing expiry.
tests/v1/multiprocess/test_session.py:30
Method
session_manager
The session manager for request lifecycle tracking.
lmcache/v1/multiprocess/engine_context.py:188
Method
set
(self, key: bytes, value)
tests/conftest.py:156
Method
set
(self, key, value)
tests/conftest.py:214
← previous
next →
8,501–8,600 of 13,371, ranked by callers