MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methoddropped_count
Number of records that failed to encode/write.
lmcache/v1/mp_observability/trace/recorder.py:104
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_bs_nh_hs.py:54
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_bs_nh_hs.py:55
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nb_bs_nh_hs.py:54
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_nh_bs_two_hs.py:58
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nbbs_one_hs.py:58
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_nh_bs_hs.py:56
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_nh_bs_hs.py:56
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nbbs_nh_hs.py:58
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_bs_nh_hs.py:55
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_nh_bs_hs.py:57
Methoddtype
(self, layer_idx: int = 0)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_bs_hs.py:53
Methoddtype
Returns the dtype of the KV cache tensors.
lmcache/v1/platform/base_cache_context.py:83
Methoddtype
Returns the dtype of the KV cache tensors.
lmcache/v1/platform/cpu/cache_context.py:225
Methoddtype
(self)
lmcache/v1/platform/cuda/cache_context.py:443
Methoddtype
(self)
lmcache/v1/platform/cuda/cache_context.py:601
Methoddummy
(**kw)
tests/v1/test_basic_check.py:23
Methodeffective_listen_url
The listen URL, defaulting to the advertise URL when unset.
lmcache/v1/multiprocess/config.py:161
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_bs_nh_hs.py:50
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_bs_nh_hs.py:52
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nb_bs_nh_hs.py:51
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_nh_bs_two_hs.py:54
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nbbs_one_hs.py:55
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_nh_bs_hs.py:52
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_nh_bs_hs.py:53
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nbbs_nh_hs.py:55
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_bs_nh_hs.py:52
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_nh_bs_hs.py:54
Methodelements_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_bs_hs.py:50
Methodemit
(self, record: logging.LogRecord)
tests/v1/test_v1_adapter_state_desync.py:116
Methodemit
(self, record)
tests/v1/storage_backend/test_audit_connector.py:129
Methodemit
Format and write metrics to the destination. Args: title: The report title. sections: Ordered list of ``Section`` obj
lmcache/cli/metrics/handler.py:31
Methodemit
Format and write metrics to the stream. Args: title: The report title. sections: Ordered list of ``Section`` objects.
lmcache/cli/metrics/handler.py:56
Methodemit
Format and write metrics to the file. Args: title: The report title. sections: Ordered list of ``Section`` objects.
lmcache/cli/metrics/handler.py:85
Functionempty_storage_manager_config
A StorageManagerConfig with no L2 adapters configured.
tests/v1/distributed/test_runtime_adapters.py:139
Functionenable_freeze
Enable freeze mode for the LMCache engine. When freeze mode is enabled: - All store operations will be skipped (no new data stored)
lmcache/v1/internal_api_server/vllm/freeze_api.py:14
Functionenable_hot_cache
Enable hot cache for the LocalCPUBackend. When hot cache is enabled, frequently accessed KV cache data will be kept in CPU memory for fa
lmcache/v1/internal_api_server/vllm/hot_cache_api.py:37
Functionenable_tracing
Decorate a function so its calls publish ``TRACE_CALL`` events. Args: qualname: Fully-qualified call-site name placed in the event
lmcache/v1/mp_observability/trace/decorator.py:88
Methodenabled
Whether P2P is enabled (an advertise URL is configured).
lmcache/v1/multiprocess/config.py:156
Methodenabled
Whether lookup hash logging is enabled.
lmcache/v1/mp_observability/subscribers/logging/lookup_hash.py:67
Functionenc_hook
(obj: Any)
lmcache/v1/multiprocess/custom_types.py:447
Functionencode_args
Encode an argument dict for serialization.
lmcache/v1/mp_observability/trace/codecs.py:135
Functionencode_fast_new
Python equivalent of C++ Arithmetic Encoder. Strictly emulates 32-bit unsigned overflow for high/low.
lmcache/python_ops_fallback.py:2223
Functionencode_one
(args)
lmcache/python_ops_fallback.py:2235
Functionencode_request_uid
(uid: RequestUID)
lmcache/v1/multiprocess/mq.py:45
Methodend_session
Tell the daemon we're done with this request_id. Single per-request cleanup hook — owned by the engine's request-finish path (e.g., :
lmcache/integration/sglang/multi_process_adapter.py:356
Methodend_session
Remove the session for a finished request. Args: request_id: The request ID whose session should be removed.
lmcache/v1/multiprocess/modules/lookup.py:448
Methodengine_kv_format
Returns the EngineKVFormat enum value.
lmcache/v1/platform/base_cache_context.py:150
Methodengine_kv_shape
Returns the symbolic KV cache layout description.
lmcache/v1/platform/base_cache_context.py:259
Methodentry_offset
Return the raw-device slot offset for an indexed key. Args: encoded_key: Encoded raw-block key string. Returns:
lmcache/v1/storage_backend/raw_block/core.py:593
Methodestimate_serialized_size
(self, layout_desc: MemoryLayoutDesc)
tests/v1/distributed/serde/test_async_processor.py:40
Methodestimate_serialized_size
(self, layout_desc: MemoryLayoutDesc)
tests/v1/distributed/serde/test_async_processor.py:162
Methodestimate_serialized_size
(self, layout_desc: MemoryLayoutDesc)
tests/v1/distributed/serde/test_async_processor.py:204
Methodestimate_serialized_size
(self, layout_desc: MemoryLayoutDesc)
tests/v1/distributed/serde/test_async_processor.py:244
Methodestimate_serialized_size
(self, layout_desc)
tests/v1/distributed/serde/test_factory.py:99
Methodestimate_serialized_size
( self, layout_descs: LayoutDescGroup, )
lmcache/v1/distributed/serde/multi.py:206
Methodestimate_serialized_size
Return the byte size to allocate for the serialized temp buffer. The returned value is used directly as the buffer size — include any
lmcache/v1/distributed/serde/base.py:202
Methodevent_bus
The event bus for observability events.
lmcache/v1/multiprocess/engine_context.py:193
Methodevent_fd
(self)
tests/v1/distributed/test_native_connector_l2_adapter.py:60
Methodevent_fd
(self)
tests/v1/distributed/test_native_connector_l2_adapter.py:1226
Methodevent_fd
(self)
tests/v1/distributed/test_l2_adapter_factory.py:724
Methodevent_fd
(self)
tests/v1/distributed/test_l2_adapter_factory.py:894
Functionevent_loop
Create an event loop for async tests
tests/v1/storage_backend/test_audit_connector.py:58
Functionevent_loop_thread
()
tests/v1/test_health_monitor_fallback_recovery.py:100
Functionevent_manager
Create an EventManager for testing.
tests/v1/storage_backend/test_storage_manager.py:63
Methodevent_manager
Create an EventManager for testing.
tests/v1/storage_backend/test_storage_plugin.py:203
Functionevict_fingerprints
Evict fingerprints by storage key (idempotent). Returns: Number of fingerprint entries removed.
lmcache/v1/mp_coordinator/http_apis/blend_directory_api.py:78
Methodeviction_loop
Run the eviction loop. The child class needs to override this function to implement internal eviction controlling logic.
lmcache/v1/distributed/storage_controllers/eviction_controller.py:70
Methodeviction_loop
(self)
lmcache/v1/distributed/storage_controllers/eviction_controller.py:145
Methodexecute
Dispatch to the appropriate sub-command handler. Args: args: Parsed CLI arguments. Must contain ``action`` indicating
lmcache/cli/commands/kvcache.py:103
Methodexecute
Dispatch to the appropriate sub-subcommand. Args: args: Parsed CLI arguments.
lmcache/cli/commands/base.py:208
Methodexecute
Build the coordinator config and serve the app with uvicorn. Resolves config from the environment, then overrides any field whose cor
lmcache/cli/commands/coordinator.py:123
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/quota/set_command.py:48
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/quota/list_command.py:29
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/quota/delete_command.py:41
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/quota/get_command.py:41
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/query/kvcache_command.py:23
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/query/engine_command.py:78
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/trace/info_command.py:31
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/trace/replay_command.py:39
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/bench/l2_adapter_bench/__init__.py:32
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/bench/server_bench/__init__.py:32
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/bench/engine_bench/__init__.py:43
Methodexecute
Run the benchmark and exit non-zero on failure. Args: args: Parsed CLI arguments.
lmcache/cli/commands/tool/transfer_channel_benchmark.py:64
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/tool/cache_simulator/sweep_command.py:41
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/tool/cache_simulator/simulate_command.py:42
Methodexecute
(self, args: argparse.Namespace)
lmcache/cli/commands/tool/cache_simulator/gen_dataset_command.py:44
Methodexecute
Execute a cache operation with error handling. :param operation: The operation to execute (e.g., 'clear'). :param ms
lmcache/v1/cache_controller/executor.py:425
Methodexecute
Trigger full sync on the worker
lmcache/v1/cache_controller/commands/full_sync.py:33
Methodexecute_eviction_action
Execute a single eviction action. The child class needs to override this function to implement internal eviction controlling logic.
lmcache/v1/distributed/storage_controllers/eviction_controller.py:79
Methodexists
(self, keys: list[bytes])
tests/conftest.py:162
Methodexists
(self, key)
tests/conftest.py:221
Methodexists
(self, key)
tests/conftest.py:360
Methodexists
(self, key: CacheEngineKey)
tests/v1/test_health_monitor_fallback_recovery.py:52
Methodexists
(self, key: str)
lmcache/v1/storage_backend/native_clients/connector_client_base.py:103
Methodexists
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/redis_connector.py:511
Methodexists
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/blackhole_connector.py:20
Methodexists
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/mock_connector.py:209
Methodexists
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/mooncakestore_connector.py:483
Methodexists
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/instrumented_connector.py:73
← previousnext →7,001–7,100 of 13,371, ranked by callers