MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Method_on_read_reserved
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/l1.py:37
Method_on_ready
(self)
lmcache/v1/storage_backend/resp_client.py:66
Method_on_ready
(self)
lmcache/v1/storage_backend/native_clients/connector_client_base.py:30
Function_on_record
(qualname: str, latency_s: float, failed: bool)
lmcache/cli/commands/trace/replay_command.py:189
Method_on_request_finished
(self, response: Response)
benchmarks/multi_round_qa/multi-round-qa.py:286
Method_on_request_start
Create the root span eagerly at true request arrival. Args: event: ``MP_REQUEST_START`` event with ``session_id`` set.
lmcache/v1/mp_observability/subscribers/tracing/mp_server.py:140
Method_on_request_start
Create the ``"cb.request"`` root span. blend_v3 owns the CB lookup end-to-end, so a CB request never opens an MP ``"request"`` span —
lmcache/v1/mp_observability/subscribers/tracing/cb_server.py:197
Method_on_retrieve_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l0_l1_throughput.py:97
Method_on_retrieve_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/cb_server.py:187
Method_on_retrieve_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/mp_server.py:58
Method_on_retrieve_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/cb_server.py:80
Method_on_retrieve_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l0_l1_throughput.py:92
Method_on_retrieve_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/mp_server.py:51
Method_on_retrieve_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/cb_server.py:72
Method_on_retrieve_submitted
Increment the in-flight retrieve counter for the session. Called CPU-synchronously before the GPU retrieve is enqueued, ensuring the
lmcache/v1/mp_observability/subscribers/tracing/mp_server.py:164
Method_on_session_end
Close the root span, or defer if GPU stores/retrieves are still in flight. Args: event: ``MP_REQUEST_END`` event carrying the log
lmcache/v1/mp_observability/subscribers/tracing/mp_server.py:178
Method_on_session_end
Close the root span, or defer if GPU ops are in flight or store_final is pending. Defers when either condition holds: * ``_pe
lmcache/v1/mp_observability/subscribers/tracing/cb_server.py:241
Method_on_sm_read_finished
Bump counter and emit a real-reuse sample for sampled chunks.
lmcache/v1/mp_observability/subscribers/metrics/sm_lifecycle.py:123
Method_on_sm_write_finished
Bump counter and update anchor; never emit a sample on write.
lmcache/v1/mp_observability/subscribers/metrics/sm_lifecycle.py:149
Method_on_start
Create a child span nested under the root span. Falls back to ``_get_or_create_request_span`` if ``MP_REQUEST_START`` was never emitt
lmcache/v1/mp_observability/subscribers/tracing/mp_server.py:201
Method_on_start
Create a child span nested under the ``"cb.request"`` root span. Args: event: One of the CB ``*_START`` event types.
lmcache/v1/mp_observability/subscribers/tracing/cb_server.py:272
Method_on_store_completed
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l2_throughput.py:89
Method_on_store_completed
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/l2.py:37
Method_on_store_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l0_l1_throughput.py:83
Method_on_store_final_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/cb_server.py:202
Method_on_store_final_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/cb_server.py:97
Method_on_store_final_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/cb_server.py:199
Method_on_store_final_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/cb_server.py:89
Method_on_store_pre_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/cb_server.py:194
Method_on_store_pre_end
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/cb_server.py:42
Method_on_store_pre_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/cb_server.py:191
Method_on_store_pre_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/cb_server.py:34
Method_on_store_start
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l0_l1_throughput.py:78
Method_on_store_submitted
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l2_throughput.py:83
Method_on_store_submitted
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/l2.py:30
Method_on_store_submitted
Increment the in-flight store counter for the session. Called CPU-synchronously before the GPU store is enqueued, ensuring the counte
lmcache/v1/mp_observability/subscribers/tracing/mp_server.py:150
Method_on_submitted
Increment the in-flight GPU-ops counter and update store-final tracking. ``CB_RETRIEVE_SUBMITTED`` marks the session as waiting for a store_f
lmcache/v1/mp_observability/subscribers/tracing/cb_server.py:221
Method_on_task_done
Clean up completed tasks and log unexpected errors.
lmcache/cli/commands/bench/engine_bench/workloads/multi_round_chat.py:323
Method_on_task_done
Clean up completed tasks and log unexpected errors.
lmcache/cli/commands/bench/engine_bench/workloads/long_doc_qa.py:281
Method_on_task_done
Clean up completed tasks and log unexpected errors.
lmcache/cli/commands/bench/engine_bench/workloads/random_prefill.py:168
Method_on_task_done
Clean up completed tasks and log unexpected errors. Args: task: The completed asyncio Task.
lmcache/cli/commands/bench/engine_bench/workloads/long_doc_permutator.py:402
Method_on_tick
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l1_eviction_loop.py:45
Method_on_trace_call
Encode and append one TRACE_CALL event. Errors are logged at WARNING and counted, but do not propagate — losing a record is preferabl
lmcache/v1/mp_observability/trace/recorder.py:188
Method_on_write_finished
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l1_lifecycle.py:116
Method_on_write_finished
(self, event: Event)
lmcache/v1/mp_observability/subscribers/metrics/l1.py:58
Method_on_write_finished
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/l1.py:46
Method_on_write_finished
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/sm.py:54
Method_on_write_finished_and_read_reserved
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/l1.py:49
Method_on_write_reserved
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/l1.py:43
Method_on_write_reserved
(self, event: Event)
lmcache/v1/mp_observability/subscribers/logging/sm.py:47
Method_opt_str
(key)
lmcache/v1/distributed/l2_adapters/s3_l2_adapter.py:378
Function_paged_to_buffer
(*args: Any, **kwargs: Any)
tests/v1/test_musa_native.py:206
Function_patched_fs_factory
Factory that uses _FakeLMCacheFSClient instead of the real C++ extension.
tests/v1/distributed/test_l2_adapter_factory.py:1119
Method_ping_sync
Perform the synchronous bucket health check used by ``ping``.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:479
Function_post_init
Post-initialization setup
lmcache/v1/config_base.py:249
Function_post_init
Post-initialization setup
lmcache/v1/cache_controller/config.py:93
Method_prefetch_loop
Main event-driven loop running in a background thread. Uses select.poll() to wait on: - The submission eventfd (new prefetch
lmcache/v1/distributed/storage_controllers/prefetch_controller.py:601
Method_print
(self)
examples/blend_kv/online_kv.py:43
Method_process_qkv
Process QKV tensors for LLaMa model (no additional processing).
lmcache/v1/compute/models/llama.py:7
Method_process_qkv
Process QKV tensors for Qwen3 model with q_norm and k_norm layers.
lmcache/v1/compute/models/qwen3.py:7
Method_put
(self, key: CacheEngineKey, memory_obj: MemoryObj)
lmcache/v1/storage_backend/connector/redis_connector.py:96
Method_put
Internal: store a memory object in Valkey. Note: This method does NOT call ``ref_count_down()`` on the memory object. Reference coun
lmcache/v1/storage_backend/connector/valkey_connector.py:413
Method_put
(self, key: CacheEngineKey, memory_obj: MemoryObj)
lmcache/v1/storage_backend/connector/mock_connector.py:240
Method_put
Internal PUT operation - sends data via HTTP streaming.
lmcache/v1/storage_backend/connector/sagemaker_hyperpod_connector.py:752
Method_put
Store data to S3
lmcache/v1/storage_backend/connector/s3_connector.py:537
Method_put
(self, key: CacheEngineKey, memory_obj: MemoryObj)
lmcache/v1/storage_backend/connector/eic_connector.py:441
Method_put_with_odirect
(self, file_path: Path, buffer: bytes)
lmcache/v1/storage_backend/connector/fs_connector.py:305
Function_query_lookup_hits_handler
Dummy handler for QUERY_PREFETCH_LOOKUP_HITS requests.
tests/v1/multiprocess/test_query_lookup_hits.py:62
Function_query_lookup_hits_none_handler
Dummy handler that returns None (lookup still in progress).
tests/v1/multiprocess/test_query_lookup_hits.py:83
Function_raise
(module_name: str, exc: Exception)
lmcache/cli/commands/__init__.py:24
Method_raise
(module_name: str, exc: Exception)
lmcache/cli/commands/base.py:184
Function_raise_if_called
(**_kwargs: Any)
tests/v1/test_musa_native.py:372
Method_raw
Return the raw device handle for legacy test compatibility.
lmcache/v1/storage_backend/plugins/rust_raw_block_backend.py:204
Function_read_async
()
tests/v1/storage_backend/test_dax_backend.py:481
Function_read_prefetched_results
(_keys: Any)
tests/v1/multiprocess/test_engine_driven_transfer.py:1069
Method_read_with_odirect
Synchronous O_DIRECT read into *dst_buf*. Returns the number of bytes actually read. Runs in an executor (not on the event loop).
lmcache/v1/distributed/l2_adapters/fs_l2_adapter.py:511
Function_reader
()
tests/v1/storage_backend/test_dax_backend.py:885
Method_reap_cycle
Run one reaper scan: reap stale workers, drop mirrored state. Each reaped instance id is passed to ``drop_instance_state`` on every t
lmcache/v1/multiprocess/modules/management.py:144
Function_recording_single_layer_kv_transfer
( src, dst, slot_map, direction, engine_kv_format, token_major
tests/v1/test_xpu_sglang_connector.py:794
Function_recording_single_layer_kv_transfer_sgl
( src, sgl_k, sgl_v, slot_map, direction, token_major=False,
tests/v1/test_xpu_sglang_connector.py:651
Function_ref_down
()
tests/v1/storage_backend/test_pd_backend_async.py:75
Function_ref_sparse_attention
Naive PyTorch sparse attention for reference.
tests/v1/compute/attention/test_triton_kernels.py:49
Function_ref_up
()
tests/v1/storage_backend/test_pd_backend_async.py:72
Method_refresh_cached_sizes
(self, keys: list[ObjectKey])
lmcache/v1/distributed/l2_adapters/hfbucket_l2_adapter.py:828
Method_register_import
(path)
tests/v1/distributed/test_l2_adapter_factory.py:625
Function_release_shm_segment
Drop the pinned base buffer and ``munmap`` the mapping. Invoked by ``weakref.finalize`` on the tensor's ``UntypedStorage`` once every view of
lmcache/v1/platform/cpu/shm.py:169
Function_remover
()
tests/v1/storage_backend/test_dax_backend.py:888
Method_requires_transfer_alignment
Return whether I/O transfers require block alignment. Returns: True when transfers must be aligned to ``self.block_align``.
lmcache/v1/storage_backend/raw_block/core.py:344
Method_reregister_kv_caches_callback
Heartbeat recover callback: re-register KV caches after the server returns. Runs on the heartbeat thread, before the health event is s
lmcache/integration/vllm/vllm_multi_process_adapter.py:1342
Method_reset_engine
(self)
tests/v1/multiprocess/test_http_server.py:252
Function_reset_periodic_registry
Keep the reaper out of the global registry across tests.
tests/v1/multiprocess/test_worker_liveness.py:207
Function_reset_singleton
Drop the process-global GDSContext between tests.
tests/v1/gpu_connector/test_gds_context.py:47
Method_restore_region
(self, region: _RestoreRegion)
lmcache/v1/storage_backend/plugins/dax_backend.py:812
Function_retrieve_operation
(engine, token_list)
lmcache/v1/internal_api_server/vllm/cache_api.py:543
Method_run
(self)
tests/cli/commands/bench/test_server_bench.py:448
Method_run
(self)
tests/cli/commands/bench/test_server_bench.py:548
Method_run
()
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:425
Method_run
(self)
lmcache/v1/multiprocess/native_completion.py:105
Method_run
Dispatch match queries to the pool (priority), then publishes.
lmcache/v1/mp_coordinator/blend_client.py:239
Method_run
Drain loop: wait for wake signal or timeout, then drain.
lmcache/v1/mp_observability/event_bus.py:305
← previousnext →6,001–6,100 of 13,371, ranked by callers