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
test_poll_coordinator_match_gives_up_past_deadline
PENDING past the deadline degrades to local-only ([]) and drops state.
tests/v1/multiprocess/test_blend_v3_load_store_opts.py:409
Function
test_poll_cycle_http_error_is_unregistered
A non-timeout HTTP error maps to the Unregistered state.
tests/v1/multiprocess/test_p2p_controller.py:426
Function
test_poll_cycle_registered_excludes_self_and_adds_peer
When registered, peers (but not self) get adapters.
tests/v1/multiprocess/test_p2p_controller.py:446
Function
test_poll_cycle_self_absent_is_unregistered
Not finding our own instance in the listing is Unregistered.
tests/v1/multiprocess/test_p2p_controller.py:436
Function
test_poll_cycle_skips_peer_without_p2p_url
A peer that advertises no p2p url is not adapted.
tests/v1/multiprocess/test_p2p_controller.py:474
Function
test_poll_cycle_timeout_is_disconnected
A request timeout maps to the Disconnected state.
tests/v1/multiprocess/test_p2p_controller.py:416
Function
test_poll_cycle_unexpected_error_does_not_crash
An unexpected parsing error is caught and maps to Unregistered.
tests/v1/multiprocess/test_p2p_controller.py:462
Function
test_poll_none_before_submit
()
tests/v1/mp_coordinator/test_blend_client.py:145
Method
test_poll_prefetch_status_uses_request_id
QUERY_PREFETCH_STATUS payload is keyed by request_id str.
tests/cli/commands/bench/test_server_bench.py:489
Method
test_pollable
PipeNotifier fd is pollable with select.poll.
tests/v1/test_event_notifier.py:121
Function
test_pool_error_on_unregistered
Test that pool methods raise ValueError for unregistered request types.
tests/v1/multiprocess/test_mq.py:801
Method
test_pop_clears_completed_tasks
(self, adapter)
tests/v1/distributed/test_native_connector_l2_adapter.py:448
Method
test_pop_completed_store_tasks_clears_completed
pop_completed_store_tasks should clear the completed tasks.
tests/v1/distributed/test_mock_l2_adapter.py:209
Method
test_pop_completed_store_tasks_clears_completed
pop_completed_store_tasks should clear the completed tasks.
tests/v1/distributed/test_nixl_store_l2_adapter.py:260
Method
test_pop_completed_store_tasks_returns_completed
pop_completed_store_tasks should return completed tasks with success status.
tests/v1/distributed/test_mock_l2_adapter.py:191
Method
test_pop_completed_store_tasks_returns_completed
pop_completed_store_tasks should return completed tasks with success status.
tests/v1/distributed/test_nixl_store_l2_adapter.py:242
Method
test_pop_completed_store_tasks_returns_completed
(self, adapter)
tests/v1/distributed/test_nixl_store_dynamic_l2_adapter.py:250
Method
test_pop_pending_keys_clears_queue
pop_pending_keys should drain the queue.
tests/v1/distributed/test_store_controller.py:190
Method
test_pop_pending_keys_returns_empty_initially
A fresh listener should have no pending keys.
tests/v1/distributed/test_store_controller.py:173
Method
test_popcount_all_ones
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:122
Method
test_popcount_all_zeros
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:117
Method
test_popcount_only_low_bits_counted_in_last_byte
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:605
Method
test_popcount_partial
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:129
Method
test_popcount_random
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:137
Method
test_position_mru_is_zero
(self)
tests/tools/test_cache_simulator.py:92
Method
test_positive_capacity_supports_global_eviction
(self)
tests/v1/distributed/test_l2_adapter_base.py:117
Method
test_post_init_exception_makes_unhealthy
Test that exception during post_init makes system unhealthy.
tests/v1/test_manager.py:443
Method
test_post_init_skipped_when_init_failed
Test that post_init marks engine unhealthy when init failed.
tests/v1/test_manager.py:422
Method
test_post_init_with_engine_and_async_loading
Test post_init calls engine.post_init with async_lookup_server.
tests/v1/test_manager.py:213
Method
test_post_init_with_engine_and_async_server
Test post_init calls engine.post_init when async lookup server exists.
tests/v1/test_manager.py:231
Method
test_post_init_without_engine
Test post_init initializes health monitor when engine is None.
tests/v1/test_manager.py:195
Method
test_preempted_full_hit_decode_flow
Full scenario: preempted request with full LMCache hit. Verifies both the slice and assertion work.
tests/v1/test_decode_save_and_preemption.py:366
Method
test_preemption_handling
(self)
tests/v1/lookup_client/test_chunk_statistics_lookup_client.py:123
Method
test_preemption_old_fix_fails
Verify the PR #2821 fix (tracker_len only) would fail on preemption.
tests/v1/test_decode_save_and_preemption.py:157
Method
test_preemption_tracker_stale
Preemption: tracker has stale tokens from before preemption, num_computed_tokens was reset. min() picks num_computed_tokens.
tests/v1/test_decode_save_and_preemption.py:136
Method
test_prefetch_controller_status_shape
(self, storage_manager_no_l2)
tests/v1/distributed/test_report_status.py:174
Method
test_prefetch_from_l2
Write to L1 → store to L2 → clear L1 → prefetch from L2.
tests/v1/distributed/test_distributed_storage_manager.py:558
Method
test_prefetch_full_lifecycle
Simulate query: lookup 20 keys, 18 prefix hits, all 18 load OK.
tests/v1/mp_observability/subscribers/metrics/test_l2.py:317
Method
test_prefetch_l1_prefix_plus_l2_continuation
L1 has keys {0,1}, L2 has {2,3,4} → combined prefix of 5.
tests/v1/distributed/test_distributed_storage_manager.py:661
Method
test_prefetch_l2_partial_prefix
L2 has keys {0,1,3,4} but not 2 → L2 returns prefix of 2.
tests/v1/distributed/test_distributed_storage_manager.py:629
Method
test_prefetch_load_completed_groups_by_salt
Prefetch load completed counter groups by cache_salt.
tests/v1/mp_observability/subscribers/metrics/test_l2.py:720
Method
test_prefetch_load_submitted_groups_by_salt
Prefetch load submitted object counter groups by cache_salt.
tests/v1/mp_observability/subscribers/metrics/test_l2.py:694
Method
test_prefetch_lookup_submitted_groups_by_salt
Prefetch lookup submitted object counter groups by cache_salt.
tests/v1/mp_observability/subscribers/metrics/test_l2.py:668
Method
test_prefetch_mixed_l1_l2
Some keys in L1, rest in L2 → combined prefix hits.
tests/v1/distributed/test_distributed_storage_manager.py:587
Method
test_prefetch_no_hits_with_serde
Empty L2 → prefetch returns 0 hits, no temp buffer leak.
tests/v1/distributed/serde/test_serde_e2e.py:420
Method
test_prefetch_nothing_in_l2
Prefetch keys not in L2 → returns 0 L2 hits.
tests/v1/distributed/test_distributed_storage_manager.py:614
Method
test_prefetch_partial_prefix_hits
Test prefetch with partial hits.
tests/v1/distributed/test_distributed_storage_manager.py:279
Method
test_prefetch_skipped_keys_released_with_extra
Non-prefix L1 hits are released with correct extra. Keys {0,1,3,4} exist, key 2 is missing. The prefix hits are {0,1}; keys {3,4} mu
tests/v1/distributed/test_distributed_storage_manager.py:454
Method
test_prefetch_with_extra_count
submit_prefetch_task(extra_count=N-1) acquires N locks.
tests/v1/distributed/test_distributed_storage_manager.py:397
Method
test_prefix_all
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:533
Method
test_prefix_bodies_are_unique_with_mock_tokenizer
Tokenizer path: each prefix samples a different per-prefix RNG, so the random token-ID sequences differ → decoded bodies differ. Requi
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:315
Method
test_prefix_bodies_use_hi_fallback_when_no_tokenizer
Fallback path: when no tokenizer is loadable (unit tests pass ``model_name=None``), bodies use deterministic ``"hi"`` filler. Product
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:298
Method
test_prefix_exact_byte_boundary
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:563
Method
test_prefix_exceeds_size_clamped
(self)
tests/v1/native_storage_ops/test_bitmap.py:557
Method
test_prefix_hits_attr_set_on_root_span
CB_LOOKUP_END with prefix_hits=2 stamps prefix_hits=2 on root span.
tests/v1/mp_observability/subscribers/tracing/test_cb_server.py:767
Method
test_prefix_hits_defaults_to_zero_when_absent
CB_LOOKUP_END without prefix_hits stamps prefix_hits=0 (backward compat).
tests/v1/mp_observability/subscribers/tracing/test_cb_server.py:820
Method
test_prefix_matches_manual_set
Bitmap(size, prefix) should be identical to setting bits 0..prefix-1.
tests/v1/native_storage_ops/test_bitmap.py:576
Method
test_prefix_one
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:550
Method
test_prefix_partial
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:539
Method
test_prefix_semantics_breaks_on_first_miss
(self)
tests/tools/test_cache_simulator.py:277
Method
test_prefix_sharing_adds_owner
Prefix sharing should add the new request as co-owner.
tests/v1/mp_observability/subscribers/metrics/test_l0_lifecycle.py:174
Method
test_prefix_sharing_no_reuse_gap
Two requests sharing the same block while both active = no reuse.
tests/v1/mp_observability/subscribers/metrics/test_l0_lifecycle.py:151
Method
test_prefix_suffix_tuner
(self)
tests/cli/commands/bench/engine_bench/workloads/test_create_workload.py:216
Method
test_prefix_suffix_tuner_custom_args
(self)
tests/cli/commands/bench/engine_bench/workloads/test_create_workload.py:244
Method
test_prefix_trims_at_first_gap
(self)
tests/v1/distributed/test_prefetch_controller.py:1268
Method
test_prefix_trims_at_first_gap
(self)
tests/v1/distributed/test_bitmap_ops.py:244
Method
test_prefix_with_gap
L2 has keys {0,1,3,4} but not 2 → only prefix {0,1} loaded.
tests/v1/distributed/test_prefetch_controller.py:280
Method
test_prefix_zero
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:528
Method
test_prefix_zero_size
(self)
tests/v1/native_storage_ops/test_bitmap.py:586
Method
test_prefixes_are_distinct
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:271
Method
test_prefixes_have_unique_id_at_start
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:265
Method
test_presence_cache_only_skips_remote
With presence_cache_only set, a presence-cache miss returns False without issuing the queryMem call (key_exists not called).
tests/v1/test_nixl_batched_contains.py:166
Method
test_presence_cache_only_skips_remote
With presence_cache_only set, batched_contains returns the count of leading local hits and never issues the remote batched query.
tests/v1/test_nixl_batched_contains.py:261
Method
test_preserves_http
(self)
tests/cli/test_describe.py:99
Method
test_preserves_https
(self)
tests/cli/test_describe.py:102
Method
test_primitive_inputs_rejected
(self, bad: Any)
tests/v1/test_json_utils.py:106
Method
test_primitives_unchanged
JSON-native primitives are returned unchanged.
tests/v1/test_json_utils.py:31
Function
test_process_tokens_early_failure_truncates_later_location
When an early location fails, blocks successfully retrieved from a later location (covering higher positions) must be discarded and freed beca
tests/v1/test_cache_engine.py:1735
Function
test_process_tokens_first_block_fails
When the very first block fails, no chunks should be returned and ret_mask should be all False.
tests/v1/test_cache_engine.py:1882
Function
test_process_tokens_multi_location_both_fail_takes_min
When failures occur in multiple locations, the earliest failure start (MIN) should be used so that everything after the first gap is discarded
tests/v1/test_cache_engine.py:1779
Function
test_process_tokens_no_failure
When all blocks are retrieved successfully, every chunk should be returned and no ref_count_down should be called.
tests/v1/test_cache_engine.py:1821
Function
test_process_tokens_returns_int_keys_for_bytes_hash_func
process_tokens must produce int chunk_hash keys even when the underlying hash function returns bytes (e.g. sha256_cbor). This ensures downstream
tests/v1/test_token_database.py:138
Function
test_process_tokens_single_location_boundary_failure
The block whose end equals last_failed_block_start covers [start, last_failed_block_start) — entirely before the gap — and must be kept.
tests/v1/test_cache_engine.py:1704
Function
test_process_tokens_unused_keys_no_double_free
A key returned non-None by batched_get but coming after a None (unused) should be freed exactly once in the per-location cleanup and never aga
tests/v1/test_cache_engine.py:1850
Method
test_progressive_metrics
(self)
tests/v1/lookup_client/test_chunk_statistics_lookup_client.py:191
Method
test_prometheus_args_registered
(self, parser)
tests/cli/commands/test_server.py:85
Function
test_prometheus_logger_custom_buckets
Histogram should use custom buckets from config.
tests/test_observability.py:326
Function
test_prometheus_logger_default_buckets
Histogram should use default buckets when no config.
tests/test_observability.py:318
Function
test_prometheus_logger_get_or_create_allows_multiple_roles
Different roles should not be treated as global metadata conflicts.
tests/test_observability.py:393
Function
test_prometheus_logger_get_or_create_with_config
GetOrCreate should pass config to the constructor.
tests/test_observability.py:373
Function
test_prometheus_logger_label_view_rebinds_dynamic_metrics
Dynamic gauge callbacks should use each label view's labels.
tests/test_observability.py:408
Function
test_prometheus_logger_partial_custom_buckets
Only specified histograms should get custom buckets.
tests/test_observability.py:346
Function
test_prometheus_logger_reset_reinitializes_all_label_views
Resetting one label view should keep metric children visible for all views.
tests/test_observability.py:438
Method
test_prompt_fill_tokens
(self)
tests/cli/commands/bench/engine_bench/workloads/test_random_prefill.py:141
Method
test_prompt_format
(self)
tests/cli/commands/bench/engine_bench/workloads/test_random_prefill.py:135
Method
test_propagates_adapter_failure_in_body
(self)
tests/v1/multiprocess/http_apis/test_l2_api.py:211
Method
test_propagates_object_key_invariants
(self)
tests/v1/distributed/test_encoded_object_key.py:93
Method
test_properties
Test all properties.
tests/v1/cache_controller/test_full_sync_sender.py:82
Method
test_publish_block_allocation_event
Verify MP_VLLM_BLOCK_ALLOCATION events are delivered to subscribers.
tests/v1/mp_observability/test_event_bus.py:465
Method
test_publish_on_stream_reaches_subscriber
(self, stream, bus)
tests/v1/mp_observability/test_event_recorder.py:142
← previous
next →
11,701–11,800 of 13,371, ranked by callers