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
Method
test_comma_separated_file_uris
(self)
tests/v1/storage_backend/test_local_disk_backend.py:368
Method
test_comma_separated_raw
(self)
tests/v1/storage_backend/test_local_disk_backend.py:364
Method
test_common_env_endpoint_present
/env from env_api should be registered.
tests/v1/multiprocess/http_apis/test_common_api.py:45
Method
test_common_loglevel_endpoint_present
/loglevel from loglevel_api should be registered.
tests/v1/multiprocess/http_apis/test_common_api.py:51
Function
test_compare_results_fails_when_native_is_slower
A slower native result fails with the required speedup in the summary.
tests/benchmarks/test_musa_inprocess_benchmark.py:25
Function
test_compare_results_requires_native_speedup
A fast native result passes the Stage2 speedup gate.
tests/benchmarks/test_musa_inprocess_benchmark.py:10
Method
test_complete_sync
Test sync completion.
tests/v1/cache_controller/test_full_sync.py:119
Method
test_complete_sync_flow
Test complete sync flow for single worker.
tests/v1/cache_controller/test_full_sync.py:397
Method
test_completed_without_submitted_is_noop
(self, subscriber)
tests/v1/mp_observability/subscribers/metrics/test_l2_throughput.py:259
Method
test_completions_content_extraction
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:436
Method
test_completions_no_choices
(self)
tests/cli/commands/bench/engine_bench/test_request_sender.py:124
Method
test_completions_text
(self)
tests/cli/commands/bench/engine_bench/test_request_sender.py:120
Function
test_compress_decompress_unpin_not_pinned
Verify that compress and decompress check is_pinned before calling unpin() This prevents negative pin counts and double unpin warnings on backend
tests/v1/test_cache_engine.py:1909
Function
test_compress_decompress_unpin_when_pinned
Verify that compress and decompress call unpin() if is_pinned is True
tests/v1/test_cache_engine.py:2005
Method
test_compress_delegates_to_executor
Test compress operation delegates to cluster executor.
tests/v1/cache_controller/test_kv_controller.py:632
Method
test_compress_msg_serialization
Test CompressMsg encode/decode.
tests/v1/cache_controller/test_messages.py:366
Method
test_compress_ret_msg_serialization
Test CompressRetMsg encode/decode.
tests/v1/cache_controller/test_messages.py:509
Method
test_compress_slot_mapping
Test compression of slot mappings.
tests/v1/internal_api_server/test_kvcache_check_api.py:264
Method
test_compress_worker_msg_serialization
Test CompressWorkerMsg encode/decode.
tests/v1/cache_controller/test_messages.py:244
Method
test_compress_worker_msg_without_tokens
Test CompressWorkerMsg without tokens (compress all).
tests/v1/cache_controller/test_messages.py:260
Method
test_compress_worker_ret_msg
Test CompressWorkerRetMsg encode/decode.
tests/v1/cache_controller/test_messages.py:672
Method
test_compute_aligned_size
Test that compute_aligned_size works correctly.
tests/v1/test_address_manager.py:38
Method
test_compute_aligned_size_custom_alignment
Test compute_aligned_size with different alignment values.
tests/v1/test_address_manager.py:51
Method
test_compute_chunk_hashes_empty
(self, hasher: TokenHasher)
tests/v1/multiprocess/test_token_hasher.py:105
Method
test_compute_chunk_hashes_exact_chunks
8 tokens with chunk_size=4 produces 2 hashes.
tests/v1/multiprocess/test_token_hasher.py:86
Method
test_compute_chunk_hashes_matches_manual
compute_chunk_hashes should match manual rolling hash_tokens calls.
tests/v1/multiprocess/test_token_hasher.py:117
Method
test_compute_chunk_hashes_partial_chunk_discarded
10 tokens with chunk_size=4 produces 2 hashes (last 2 tokens discarded).
tests/v1/multiprocess/test_token_hasher.py:92
Method
test_compute_chunk_hashes_rolling
Second chunk hash depends on the first (rolling property).
tests/v1/multiprocess/test_token_hasher.py:109
Method
test_compute_chunk_hashes_too_few_tokens
3 tokens with chunk_size=4 produces 0 hashes.
tests/v1/multiprocess/test_token_hasher.py:100
Function
test_compute_kv_layout_and_gather_scatter_roundtrip
Validate layout extraction and gather/scatter round-trip on CPU tensors.
tests/v1/multiprocess/test_engine_driven_transfer.py:631
Function
test_compute_kv_layout_empty_raises_value_error
Ensure compute_kv_layout rejects empty KV cache input.
tests/v1/multiprocess/test_engine_driven_transfer.py:735
Function
test_concrete_shape_is_group_accurate
()
tests/v1/gpu_connector/test_concrete_shape.py:57
Function
test_concrete_shape_uses_pbs_for_folded_formats
()
tests/v1/gpu_connector/test_concrete_shape.py:48
Function
test_concrete_shape_vllm_flash_attn
()
tests/v1/gpu_connector/test_concrete_shape.py:32
Function
test_concrete_shape_vllm_mla
()
tests/v1/gpu_connector/test_concrete_shape.py:40
Method
test_concurrent_access
Test concurrent access to the backend.
tests/v1/storage_backend/test_local_cpu_backend.py:473
Method
test_concurrent_add_remove_workers
Test concurrent worker add/remove on same instance.
tests/v1/cache_controller/test_registry_tree.py:198
Method
test_concurrent_add_workers
Test concurrent worker additions to same instance.
tests/v1/cache_controller/test_registry_tree.py:170
Method
test_concurrent_admit_evict_kv
Test concurrent admit and evict on the same worker.
tests/v1/cache_controller/test_registry_tree.py:72
Method
test_concurrent_admit_kv
Test concurrent KV admission on the same worker.
tests/v1/cache_controller/test_registry_tree.py:28
Method
test_concurrent_alloc_and_free
Test concurrent allocations and frees.
tests/v1/test_address_manager.py:811
Method
test_concurrent_allocate_and_free
Test concurrent allocate and free operations from multiple threads. This verifies the thread-safety guarantees of both methods.
tests/v1/distributed/test_l1_memory_manager.py:502
Method
test_concurrent_allocations
Test that concurrent allocations are thread-safe.
tests/v1/test_address_manager.py:721
Method
test_concurrent_allocs_produce_unique_ids
Simulate the race: multiple threads calling _alloc_device_ids concurrently, as happens when async PUT cleanup and sync GET overlap.
tests/v1/test_device_id_race.py:100
Method
test_concurrent_batch_operations
Test concurrent batch operations on same worker using handle_batched_kv_operations.
tests/v1/cache_controller/test_registry_tree.py:987
Method
test_concurrent_batched_alloc_and_free
Test concurrent batched_allocate and free operations.
tests/v1/test_address_manager.py:981
Method
test_concurrent_batched_allocations
Test that concurrent batched_allocate calls are thread-safe.
tests/v1/test_address_manager.py:946
Method
test_concurrent_different_data
Test concurrent matches with different data.
tests/v1/native_storage_ops/test_pattern_matcher.py:276
Method
test_concurrent_frees
Test that concurrent frees are thread-safe.
tests/v1/test_address_manager.py:767
Method
test_concurrent_get_hashes
Multiple threads calling get_hashes on the same Session must produce correct hashes (no duplicates, no corruption).
tests/v1/multiprocess/test_session.py:154
Method
test_concurrent_is_locked_reads
Test that is_locked() is safe to call concurrently with modifications.
tests/v1/native_storage_ops/test_ttl_lock.py:303
Method
test_concurrent_kv_operations_same_worker
Test concurrent KV operations on the same worker.
tests/v1/cache_controller/test_registry_tree.py:388
Method
test_concurrent_lock_unlock
Test concurrent mixed lock/unlock operations.
tests/v1/native_storage_ops/test_ttl_lock.py:257
Method
test_concurrent_locks
Test that concurrent lock() operations are thread-safe.
tests/v1/native_storage_ops/test_ttl_lock.py:197
Method
test_concurrent_lookups
Test concurrent lookup requests from same client.
tests/v1/lookup_client/test_lmcache_lookup_client.py:403
Method
test_concurrent_matches
Test that multiple threads can call match() concurrently.
tests/v1/native_storage_ops/test_pattern_matcher.py:253
Method
test_concurrent_operations_different_instances
Test that operations on different instances don't block each other. This is the key benefit of fine-grained locking.
tests/v1/cache_controller/test_registry_tree.py:258
Method
test_concurrent_producers
Stress test with multiple producer threads.
tests/v1/storage_backend/test_batched_message_sender.py:209
Method
test_concurrent_read_same_key
Test concurrent reads on the same key.
tests/v1/distributed/test_l1_manager.py:1663
Method
test_concurrent_read_write
(self)
tests/cli/commands/bench/engine_bench/test_stats.py:253
Method
test_concurrent_read_write
Readers must never see a corrupted value.
tests/v1/distributed/test_quota_manager.py:114
Method
test_concurrent_read_write_mixed_operations
Test concurrent mixed operations don't cause crashes.
tests/v1/distributed/test_l1_manager.py:1726
Method
test_concurrent_read_write_operations
Test concurrent read and write operations maintain consistency.
tests/v1/cache_controller/test_locks.py:178
Method
test_concurrent_register_and_match
Interleaved publishes and queries stay correct and never crash.
tests/v1/mp_coordinator/test_blend_directory.py:200
Method
test_concurrent_register_deregister_same_instance
Test concurrent register/deregister on the same instance.
tests/v1/cache_controller/test_registry_tree.py:334
Method
test_concurrent_reserve_write_different_keys
Test concurrent reserve_write on different keys.
tests/v1/distributed/test_l1_manager.py:1628
Method
test_concurrent_reset
Test that reset() is safe to call concurrently.
tests/v1/native_storage_ops/test_ttl_lock.py:366
Method
test_concurrent_send_finish_log
(self)
tests/cli/commands/bench/engine_bench/test_progress.py:171
Method
test_concurrent_seq_num_update
Test concurrent sequence number updates.
tests/v1/cache_controller/test_registry_tree.py:134
Method
test_concurrent_set_and_delete_on_same_key
A set racing with a delete must leave the registry in a self-consistent state — either set wins (entry present) or delete wins (entry
tests/v1/distributed/test_quota_manager.py:142
Method
test_concurrent_set_and_get
set_tokens and get_hashes called concurrently must not corrupt internal state.
tests/v1/multiprocess/test_session.py:187
Method
test_concurrent_stores_thread_safe
Accounting is held under ``_usage_lock``; concurrent notifies from many threads must not lose updates.
tests/v1/distributed/test_l2_adapter_base.py:253
Method
test_concurrent_tp2_stores
Test concurrent stores from multiple "workers" (threads).
tests/v1/distributed/test_object_key_parallel.py:688
Method
test_concurrent_unlocks
Test that concurrent unlock() operations are thread-safe.
tests/v1/native_storage_ops/test_ttl_lock.py:227
Method
test_concurrent_unsafe_read_same_key
Test concurrent unsafe_reads on the same read-locked key.
tests/v1/distributed/test_l1_manager.py:1694
Method
test_concurrent_with_thread_pool
Test using ThreadPoolExecutor for concurrent operations.
tests/v1/test_address_manager.py:872
Method
test_concurrent_writes
(self)
tests/cli/commands/bench/engine_bench/test_stats.py:231
Method
test_concurrent_writes_do_not_corrupt
Every write must land intact under contention.
tests/v1/distributed/test_quota_manager.py:91
Method
test_conf_endpoint_present
/conf from conf_api should be registered.
tests/v1/multiprocess/http_apis/test_common_api.py:57
Function
test_config
()
tests/v1/test_health_monitor_fallback_recovery.py:108
Function
test_config_accepts_disabled_and_defaults
0 disables reaping; defaults satisfy the grace >= timeout invariant.
tests/v1/multiprocess/test_worker_liveness.py:304
Method
test_config_file_loading
Benchmark runs correctly from a --config JSON file.
tests/cli/commands/bench/test_bench_command.py:630
Method
test_config_flag_accepted
(self)
tests/cli/commands/bench/test_bench_command.py:179
Function
test_config_from_dict_rejects_invalid
(bad)
tests/v1/distributed/l2_adapters/test_p2p_l2_adapter.py:125
Function
test_config_from_dict_roundtrip
()
tests/v1/distributed/l2_adapters/test_p2p_l2_adapter.py:96
Method
test_config_overrides_env_vars
Config values should take precedence over env vars.
tests/v1/distributed/test_resp_env_vars.py:44
Method
test_config_property
Test config property returns the config.
tests/v1/test_manager.py:149
Function
test_config_rejects_bad_reap_timeouts
Validation rejects sub-floor reap timeouts and undersized grace.
tests/v1/multiprocess/test_worker_liveness.py:293
Method
test_config_type_name
get_type_name_for_config should return 'mooncake_store'.
tests/v1/distributed/test_mooncake_store_l2_adapter.py:339
Method
test_configuration_parameters
Test various configuration parameters. This test verifies that different configuration parameters are properly passed to the HF3fs
tests/v1/storage_backend/test_hf3fs_connector.py:624
Function
test_connecting_registers_clients_on_both_sides
(fresh_contexts)
tests/v1/distributed/transfer_channel/test_nixl_impl.py:222
Method
test_connection_error_raises
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_config.py:123
Method
test_connection_refused
(self)
tests/cli/test_ping.py:82
Method
test_connection_refused
Verify sys.exit(1) on connection error.
tests/cli/test_describe.py:284
Method
test_connection_refused_exits_1
(self)
tests/cli/test_ping.py:142
Method
test_consecutive_ranges
Test consecutive non-overlapping ranges.
tests/v1/native_storage_ops/test_pattern_matcher.py:659
Method
test_consecutive_then_miss
(self)
tests/v1/test_nixl_batched_contains.py:102
Method
test_consistency_after_operations
Test consistency after various operations.
tests/v1/test_address_manager.py:677
Method
test_consistency_empty
Test consistency on empty manager.
tests/v1/test_address_manager.py:662
Method
test_consistency_full
Test consistency on fully allocated manager.
tests/v1/test_address_manager.py:667
← previous
next →
9,401–9,500 of 13,371, ranked by callers