MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Method_run_and_close
()
lmcache/cli/commands/bench/engine_bench/workloads/base.py:83
Function_run_client_test
Client process that sends requests and validates responses. Args: server_url: URL to connect to ready_event: Event to wait f
tests/v1/multiprocess/test_mq.py:104
Method_run_event_loop
(self)
lmcache/v1/distributed/l2_adapters/s3_l2_adapter.py:830
Method_run_event_loop
(self)
lmcache/v1/distributed/l2_adapters/nixl_store_dynamic_l2_adapter.py:571
Method_run_event_loop
Run the asyncio event loop in a background thread.
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:679
Method_run_event_loop
(self)
lmcache/v1/distributed/l2_adapters/hfbucket_l2_adapter.py:515
Method_run_event_loop
(self)
lmcache/v1/distributed/l2_adapters/fs_l2_adapter.py:468
Method_run_event_loop
Run the asyncio event loop in a background thread.
lmcache/v1/distributed/l2_adapters/mock_l2_adapter.py:335
Method_run_load_task
( self, keys: list[ObjectKey], objects: list[MemoryObj], )
lmcache/v1/distributed/l2_adapters/raw_block_l2_adapter.py:731
Method_run_lookup_task
(self, keys: list[ObjectKey])
lmcache/v1/distributed/l2_adapters/raw_block_l2_adapter.py:708
Method_run_loop
(self)
tests/v1/test_health_monitor_fallback_recovery.py:83
Method_run_loop
(self)
examples/lmc_external_l2_adapter/src/lmc_external_l2_adapter/adapter.py:256
Method_run_loop
Main thread loop.
lmcache/v1/periodic_thread.py:276
Method_run_loop
Run the event loop
lmcache/v1/check/utils.py:546
Method_run_store_task
Persist one submitted store batch in the worker pool. Args: keys: Object keys submitted for storage. objects: Payload
lmcache/v1/distributed/l2_adapters/raw_block_l2_adapter.py:650
Method_run_task
Execute a serialize/deserialize task in the thread pool. On completion (success or failure), stores the result and signals the event
lmcache/v1/distributed/serde/async_processor.py:160
Method_safe_close
Helper to close a resource with timeout protection.
lmcache/v1/manager.py:247
Method_save_gds
( self, path: str, tmp: str, kv_chunk: torch.Tensor, fmt: MemoryFormat
lmcache/v1/storage_backend/gds_backend.py:938
Method_scan_metadata_subdir
(self, path, l1_dir)
lmcache/v1/storage_backend/gds_backend.py:381
Method_selective_import
(path)
tests/v1/distributed/test_l2_adapter_factory.py:605
Method_send_event
Send an event to the FastAPI endpoint (runs in thread pool).
lmcache/integration/request_telemetry/fastapi.py:79
Method_serve_loop
(self)
lmcache/v1/distributed/transfer_channel/impl/nixl_impl.py:251
Function_server_process
Server process that runs the MessageQueueServer. Args: server_url: URL to bind the server to ready_event: Event to signal wh
tests/v1/multiprocess/test_mq.py:58
Method_setup_config
(self, config: LMCacheEngineConfig)
benchmarks/storage_backend_io/storage_backend_io_benchmark.py:664
Method_setup_config
(self, config: LMCacheEngineConfig)
benchmarks/storage_backend_io/storage_backend_io_benchmark.py:884
Method_setup_device
Setup raw block device or temp file.
benchmarks/storage_backend_io/storage_backend_io_benchmark.py:755
Function_singleton
Decorator that turns *cls* into a singleton.
lmcache/v1/storage_backend/hipfile_shim.py:33
Method_slab_read
Submit one ``cuFileReadAsync`` against the slab handle (stream-ordered).
lmcache/v1/gpu_connector/gds_context.py:332
Method_slab_write
Submit one ``cuFileWriteAsync`` against the slab handle (stream-ordered).
lmcache/v1/gpu_connector/gds_context.py:344
Function_slow_write
(*a, **kw)
tests/v1/storage_backend/test_pd_backend_async.py:178
Method_spin
(self)
examples/online_session/openai_chat_completion_client.py:68
Method_start_server
Start a tiny HTTP server for the test.
tests/cli/commands/bench/test_server_bench.py:265
Method_stop_tasks
()
lmcache/v1/distributed/l2_adapters/s3_l2_adapter.py:786
Method_stop_tasks
()
lmcache/v1/distributed/l2_adapters/nixl_store_dynamic_l2_adapter.py:529
Method_stop_tasks
()
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:583
Method_stop_tasks
()
lmcache/v1/distributed/l2_adapters/hfbucket_l2_adapter.py:475
Method_stop_tasks
()
lmcache/v1/distributed/l2_adapters/fs_l2_adapter.py:437
Method_stop_tasks
()
lmcache/v1/distributed/l2_adapters/mock_l2_adapter.py:250
Method_store_batch_sync
( self, keys: list[ObjectKey], objects: list[MemoryObj], )
lmcache/v1/distributed/l2_adapters/hfbucket_l2_adapter.py:621
Method_store_loop
Main event-driven loop running in a background thread. Uses select.poll() to wait on: - The StoreListener's eventfd (new key
lmcache/v1/distributed/storage_controllers/store_controller.py:429
Function_store_objs
(_r: int)
lmcache/cli/commands/bench/l2_adapter_bench/command.py:326
Function_store_operation
(engine, token_list)
lmcache/v1/internal_api_server/vllm/cache_api.py:483
Method_storer
()
tests/v1/test_vllm_layerwise_wait_for_save.py:42
Method_str
(name: str, default: str)
lmcache/v1/mp_coordinator/config.py:108
Function_stub_native_storage_ops
Temporarily stub ``native_storage_ops`` if the extension is not built. The stub is removed from ``sys.modules`` after the test so it does not
tests/cli/conftest.py:26
Method_submit_put_tasks
Submit put tasks using futures pattern (for RustRawBlockBackend).
benchmarks/storage_backend_io/storage_backend_io_benchmark.py:800
Function_submit_request
(req_type, payload, response_cls)
tests/v1/multiprocess/test_engine_driven_transfer.py:1430
Function_to_block_id_list
Convert block IDs from tensor/list form into a Python ``list[int]``.
lmcache/python_ops_fallback.py:1088
Function_to_bool
Convert value to boolean
lmcache/v1/config_base.py:128
Function_to_dict
Convert the configuration object into a dictionary.
lmcache/v1/config_base.py:443
Function_to_float_list
Convert value to list of floats
lmcache/v1/config_base.py:102
Function_to_hidden_states_retrieve_mode
Normalize hidden_states_retrieve_mode from YAML/env.
lmcache/v1/config.py:37
Function_to_int_list
Convert value to list of integers
lmcache/v1/config_base.py:88
Function_to_json
Convert object to JSON string
lmcache/v1/config_base.py:164
Function_to_str_list
Convert value to list of strings
lmcache/v1/config_base.py:116
Function_tracking_allocate
( shape: torch.Size, dtype: torch.dtype, fmt: MemoryFormat, )
tests/v1/storage_backend/test_dax_backend.py:1241
Function_tracking_batched_allocate
( shapes: torch.Size | list[torch.Size], dtypes: torch.dtype | list[torch.dtype],
tests/v1/storage_backend/test_dax_backend.py:285
Function_transfer_once
()
benchmarks/musa/bench_inprocess_transfer.py:225
Method_unlock
(ks: list[ObjectKey])
examples/lmc_external_l2_adapter/src/lmc_external_l2_adapter/adapter.py:197
Method_unlock_keys
(keys: list[ObjectKey])
lmcache/v1/distributed/l2_adapters/nixl_store_dynamic_l2_adapter.py:438
Method_unlock_keys
Unlock keys in the event loop thread.
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:547
Method_unlock_keys
Coroutine to unlock keys in the event loop thread. This is a helper function to avoid blocking the main thread.
lmcache/v1/distributed/l2_adapters/mock_l2_adapter.py:213
Function_update_config_from_env
Update an existing config object with environment variable configurations.
lmcache/v1/config.py:987
Function_update_config_from_env
Update an existing config object with environment variable configurations.
lmcache/v1/config_base.py:370
Method_update_result
(self, response: Response)
benchmarks/rag/rag.py:277
Method_uses_futures_pattern
RustRawBlockBackend uses futures pattern.
benchmarks/storage_backend_io/storage_backend_io_benchmark.py:796
Function_v_fp8_max_for_dtype
(fp8_dtype: torch.dtype)
lmcache/v1/distributed/serde/asym_k16_v8.py:65
Function_valid_block_range
Return valid engine block IDs and their LMCache object token offset. Args: object_idx: Index of the LMCache object/chunk being processed.
lmcache/python_ops_fallback.py:1233
Function_validate_config
Validate configuration
lmcache/v1/config.py:687
Function_validate_config
Validate configuration parameters
lmcache/v1/cache_controller/config.py:74
Method_validate_tokens_b64
Reject a malformed token buffer at request validation. Without this, ``decode_tokens`` would raise ``ValueError`` inside the route ha
lmcache/v1/mp_coordinator/schemas.py:296
Method_wait_pending
Await all pending alloc tasks with a timeout.
lmcache/v1/storage_backend/pd_backend_async.py:1656
Function_worker
(i: int)
tests/v1/storage_backend/test_dax_backend.py:1642
Method_worker
(q: queue.Queue)
lmcache/v1/multiprocess/affinity_pool.py:65
Function_worker_process_deserialize_and_reconstruct
Worker function that runs in a separate process. Deserializes CudaIPCWrapper list and reconstructs tensors.
tests/v1/multiprocess/test_custom_types.py:120
Method_write_with_odirect
Synchronous O_DIRECT write of *buf*. Runs in an executor (not on the event loop).
lmcache/v1/distributed/l2_adapters/fs_l2_adapter.py:550
Function_writer
()
tests/v1/storage_backend/test_dax_backend.py:1731
Methodactual_hit_rate
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:171
Functionadapter
()
tests/v1/distributed/test_native_connector_l2_adapter.py:199
Functionadapter
(tmp_path: Path, fake_client: _FakeBucketClient)
tests/v1/distributed/test_hfbucket_l2_adapter.py:181
Functionadapter
()
tests/v1/distributed/test_s3_l2_adapter.py:367
Functionadapter
Create a MockL2Adapter with reasonable defaults for testing.
tests/v1/distributed/test_mock_l2_adapter.py:101
Functionadapter
Create a NixlStoreL2Adapter with POSIX backend and an initialized memory buffer. Yields (adapter, buffer) so tests can create memory objects
tests/v1/distributed/test_nixl_store_l2_adapter.py:139
Functionadapter
Create a DynamicNixlStoreL2Adapter with POSIX backend. Yields (adapter, buffer) so tests can create memory objects that reference pages insid
tests/v1/distributed/test_nixl_store_dynamic_l2_adapter.py:129
Functionadapter
(mock_handler)
tests/v1/storage_backend/test_maru_backend.py:160
Methodadapter
(self, request)
examples/lmc_external_l2_adapter/tests/test_plugin.py:257
Functionadapter_with_capacity
Adapter with max_capacity_gb set for usage tracking tests.
tests/v1/distributed/test_native_connector_l2_adapter.py:1261
Functionadapter_with_persist
Create a DynamicNixlStoreL2Adapter with persist enabled. Yields (adapter, buffer, tmp_dir, l1_memory, config) and does NOT call close() — tes
tests/v1/distributed/test_nixl_store_dynamic_l2_adapter.py:162
Methodadd
Record a metric in this section. Args: key: Machine-readable key (used in JSON output). label: Human-readable label (
lmcache/cli/metrics/section.py:30
FunctionaddInstance
()
lmcache/v1/cache_controller/frontend/static/js/controller_app.js:392
FunctionaddNode
()
lmcache/lmcache_frontend/static/js/app.js:304
Methodadd_adapter
Blocking function to add a new adapter into the prefetch controller with the specified adapter ID and descriptor. Args: a
lmcache/v1/distributed/storage_controllers/prefetch_controller.py:545
Methodadd_arguments
Add mock-specific arguments. Args: parser: The ``ArgumentParser`` for this subcommand.
lmcache/cli/commands/mock.py:35
Methodadd_arguments
Add kvcache-specific sub-commands and their arguments. Args: parser: The ``ArgumentParser`` for this subcommand.
lmcache/cli/commands/kvcache.py:86
Methodadd_arguments
No top-level arguments; all args are registered by subcommands.
lmcache/cli/commands/base.py:152
Methodadd_arguments
Add server-specific arguments to the parser. Composes argument groups from the multiprocess, storage manager, HTTP frontend, Promethe
lmcache/cli/commands/server.py:33
Methodadd_arguments
Add coordinator-specific arguments to the parser. Each flag defaults to ``None`` so that unset flags fall back to the ``LMCACHE_MP_CO
lmcache/cli/commands/coordinator.py:38
Methodadd_arguments
(self, parser: argparse.ArgumentParser)
lmcache/cli/commands/describe.py:315
Methodadd_arguments
(self, parser: argparse.ArgumentParser)
lmcache/cli/commands/ping.py:84
Methodadd_arguments
(self, parser: argparse.ArgumentParser)
lmcache/cli/commands/quota/set_command.py:25
← previousnext →6,101–6,200 of 13,371, ranked by callers