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_pack_unpack_metadata_multiple_dtypes
pack_metadata / unpack_metadata roundtrip is correct for several dtypes.
tests/v1/storage_backend/test_gds_backend.py:1047
Function
test_pad_shape_to_4d_1d
()
tests/v1/test_remote_metadata.py:53
Function
test_pad_shape_to_4d_3d
()
tests/v1/test_remote_metadata.py:58
Function
test_pad_shape_to_4d_already_4d
()
tests/v1/test_remote_metadata.py:48
Function
test_pad_shape_too_large
()
tests/v1/test_remote_metadata.py:63
Method
test_page_size_clamped_to_s3_max
(self, adapter)
tests/v1/distributed/test_s3_l2_adapter.py:870
Method
test_page_size_must_be_positive
(self, adapter)
tests/v1/distributed/test_s3_l2_adapter.py:866
Method
test_page_token_threads_through_as_cursor
(self)
tests/v1/multiprocess/http_apis/test_l2_api.py:403
Function
test_paged_hierarchy_retrieve
( chunk_size, backend, retrieve_from, save_unfull_chunk, lmserver_v1_process, autorele
tests/v1/test_cache_engine.py:712
Function
test_paged_mem_leak
( chunk_size, backend, save_unfull_chunk, lmserver_v1_process, autorelease_v1 )
tests/v1/test_cache_engine.py:1148
Function
test_paged_mixed_retrieve
(chunk_size, backend, save_unfull_chunk, autorelease_v1)
tests/v1/test_cache_engine.py:386
Function
test_paged_prefetch_retrieve
( backend, prefetch_from, save_unfull_chunk, autorelease_v1 )
tests/v1/test_cache_engine.py:859
Function
test_paged_retrieve_after_eviction
( chunk_size, backend, save_unfull_chunk, autorelease_v1 )
tests/v1/test_cache_engine.py:1243
Function
test_paged_retrieve_prefix
( chunk_size, backend, save_unfull_chunk, lmserver_v1_process, autorelease_v1 )
tests/v1/test_cache_engine.py:154
Function
test_paged_same_retrieve_store
(save_unfull_chunk, autorelease_v1)
tests/v1/test_cache_engine.py:69
Function
test_paged_store_kv_tensors_mask
(save_unfull_chunk, autorelease_v1)
tests/v1/test_cache_engine.py:535
Function
test_paged_store_offset
( chunk_size, backend, save_unfull_chunk, lmserver_v1_process, autorelease_v1 )
tests/v1/test_cache_engine.py:275
Method
test_paginates_through_continuation_tokens
(self)
tests/v1/mp_coordinator/test_resync_manager.py:96
Method
test_pagination_cursor_walks_full_set
(self, adapter)
tests/v1/distributed/test_s3_l2_adapter.py:851
Method
test_parse_args
Simulate --l2-adapter CLI argument.
examples/lmc_external_l2_adapter/tests/test_plugin.py:205
Method
test_parse_cache_engine_key
(self)
tests/test_utils.py:500
Method
test_parse_cache_key_with_tags
Test parsing CacheEngineKey with tags.
tests/test_utils.py:549
Method
test_parse_cache_key_without_tags
Test parsing CacheEngineKey without tags.
tests/test_utils.py:534
Function
test_parse_hfbucket_handle
Bucket handles should split into bucket id and object prefix.
tests/v1/storage_backend/test_hfbucket_connector.py:243
Method
test_parse_layer_cache_engine_key
(self)
tests/test_utils.py:516
Method
test_parse_layer_cache_key_with_tags
Test parsing LayerCacheEngineKey with tags - demonstrates the bug.
tests/test_utils.py:583
Method
test_parse_layer_cache_key_without_tags
Test parsing LayerCacheEngineKey without tags.
tests/test_utils.py:568
Method
test_partial_chunk_ignored
Trailing tokens that don't fill a full window are dropped.
tests/v1/multiprocess/test_token_hasher.py:203
Function
test_partial_final_batch
The final short batch still reports the correct start index.
tests/v1/multiprocess/test_batched_iteration_with_skip.py:52
Method
test_partial_hit
A subset of the requested tokens is served by blend.
tests/v1/mp_observability/subscribers/metrics/test_cb_server.py:284
Method
test_partial_hit
A prefix of the requested tokens is served from cache.
tests/v1/mp_observability/subscribers/metrics/test_lookup.py:133
Method
test_partial_hits
(self, adapter: HFBucketL2Adapter)
tests/v1/distributed/test_hfbucket_l2_adapter.py:282
Method
test_partial_hits
(self, adapter)
tests/v1/distributed/test_s3_l2_adapter.py:487
Method
test_partial_last_chunk
(self)
tests/v1/multiprocess/test_compute_mp_checksums.py:83
Method
test_partial_last_chunk
3 blocks with chunk_size=2 blocks -> 2 chunks (2+1).
tests/v1/multiprocess/test_http_server.py:190
Method
test_partial_prefix_with_serde
L2 has keys {0,1,3,4} but not 2 → only prefix {0,1} returned.
tests/v1/distributed/serde/test_serde_e2e.py:350
Function
test_partial_restore_cutoff_when_hs_missing
()
tests/v1/test_hidden_state_store.py:240
Method
test_partial_sequence_registration
Registration with position_offset > 0; queries find at that offset.
tests/v1/multiprocess/test_optimized_lookup_v3.py:495
Method
test_partial_store_failure_accounts_written_keys
( self, adapter: HFBucketL2Adapter, fake_client: _FakeBucketClient, )
tests/v1/distributed/test_hfbucket_l2_adapter.py:332
Method
test_partial_trailing_block
Non-aligned seq_len (trailing partial block).
tests/v1/compute/attention/test_triton_kernels.py:210
Method
test_pass1_and_pass2_share_prefix_order
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:496
Method
test_pass1_and_pass2_use_different_breakers
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:521
Method
test_pass1_is_sequential
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:661
Method
test_pass2_all_hits_when_pool_equals_tier
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:750
Method
test_pass2_all_hits_when_pool_fits_in_tier
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:724
Method
test_pass2_matches_pass1
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:668
Method
test_pass2_zero_hits_when_pool_overflows
( self, num_prefixes: int, capacity: int )
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:689
Method
test_passthrough
(self, v)
tests/v1/mp_observability/trace/test_codecs.py:32
Method
test_path_sharder_cpu_device
Test PathSharder with CPU device.
tests/v1/test_nixl_multipath.py:58
Method
test_path_sharder_empty_path
Test PathSharder with empty path.
tests/v1/test_nixl_multipath.py:47
Method
test_path_sharder_multiple_paths
Test PathSharder with a CSV string of paths.
tests/v1/test_nixl_multipath.py:26
Method
test_path_sharder_single_path
Test PathSharder with a single path string.
tests/v1/test_nixl_multipath.py:14
Method
test_path_sharder_unsupported_sharding
Test PathSharder with unsupported path sharding.
tests/v1/test_nixl_multipath.py:52
Method
test_path_sharding_default
Default local_disk_path_sharding is 'by_gpu' (backend inits OK).
tests/v1/storage_backend/test_local_disk_backend.py:287
Method
test_path_sharding_explicit_by_gpu
Explicitly setting local_disk_path_sharding='by_gpu' works.
tests/v1/storage_backend/test_local_disk_backend.py:299
Method
test_path_sharding_unsupported_raises
Unsupported local_disk_path_sharding raises ValueError.
tests/v1/storage_backend/test_local_disk_backend.py:313
Method
test_pattern_at_boundaries
Test patterns at the start and end of data.
tests/v1/native_storage_ops/test_pattern_matcher.py:533
Method
test_pattern_at_end
Test when pattern is at the end of data.
tests/v1/native_storage_ops/test_pattern_matcher.py:68
Method
test_pattern_at_every_position
Test when pattern could match at multiple overlapping positions.
tests/v1/native_storage_ops/test_pattern_matcher.py:238
Method
test_pattern_at_start
Test when pattern is at the beginning of data.
tests/v1/native_storage_ops/test_pattern_matcher.py:58
Method
test_pattern_equals_data
Test when pattern is exactly the same as data.
tests/v1/native_storage_ops/test_pattern_matcher.py:109
Method
test_pattern_longer_than_data
Test when pattern is longer than data.
tests/v1/native_storage_ops/test_pattern_matcher.py:119
Method
test_pattern_longer_than_data
Test when patterns are longer than data.
tests/v1/native_storage_ops/test_pattern_matcher.py:681
Method
test_pd_bidirectional_default
pd_bidirectional defaults to False.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:347
Method
test_pd_bidirectional_set
pd_bidirectional can be set to True.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:355
Function
test_pd_max_prefill_len_check
pd_max_prefill_len > buffer capacity → ValueError on init.
tests/v1/storage_backend/test_pd_backend_async.py:806
Method
test_pd_peer_query_port_default
pd_peer_query_port defaults to None.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:363
Method
test_pd_peer_query_port_set
pd_peer_query_port can be set.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:371
Function
test_pending_sentinel_distinct
()
tests/v1/mp_coordinator/test_blend_client.py:212
Function
test_per_layer_scalar_accessors_per_layer_list
For per-layer list formats, each scalar accessor honours layer_idx.
tests/v1/gpu_connector/test_utils_shape_desc.py:112
Function
test_per_layer_scalar_accessors_sglang_mha
For SGLang MHA (nested list), accessors walk into [k_list|v_list].
tests/v1/gpu_connector/test_utils_shape_desc.py:126
Method
test_per_read_touch_vs_unified_touch_order
Compare per-read touch (old behavior) vs unified touch (new behavior). Old behavior: each retrieve touches its keys immediately. New
tests/v1/multiprocess/test_unified_touch.py:156
Method
test_percentiles_multiple
(self)
tests/cli/commands/bench/engine_bench/test_stats.py:198
Method
test_percentiles_single_result
(self)
tests/cli/commands/bench/engine_bench/test_stats.py:188
Method
test_perm_idx_matches_permutations_list
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:358
Method
test_permutations_all_when_small
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:307
Method
test_permutations_capped
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:301
Method
test_persist_keeps_files_on_close
With persist_enabled=True, data files remain on disk after close.
tests/v1/distributed/test_nixl_store_dynamic_l2_adapter.py:620
Method
test_picks_up_explicit_values
(self)
tests/cli/commands/bench/engine_bench/interactive/test_state.py:221
Method
test_pin_delegates_to_executor
Test pin operation delegates to cluster executor.
tests/v1/cache_controller/test_kv_controller.py:618
Method
test_pin_delegates_to_handler
(self, backend)
tests/v1/storage_backend/test_maru_backend.py:693
Function
test_pin_monitor_background_thread
Test that PinMonitor background thread starts correctly.
tests/v1/test_memory_management.py:485
Function
test_pin_monitor_timeout
Test that PinMonitor correctly detects and handles pin timeouts.
tests/v1/test_memory_management.py:414
Method
test_pin_msg_serialization
Test PinMsg encode/decode.
tests/v1/cache_controller/test_messages.py:351
Method
test_pin_ret_msg_serialization
Test PinRetMsg encode/decode.
tests/v1/cache_controller/test_messages.py:496
Method
test_pin_returns_false_on_failure
(self, backend)
tests/v1/storage_backend/test_maru_backend.py:700
Function
test_pin_timeout
(alloc_cls, custom_timeout, elapsed_time)
tests/v1/test_memory_management.py:356
Method
test_pin_unpin
Test pin() and unpin() operations.
tests/v1/storage_backend/test_local_cpu_backend.py:285
Method
test_pin_unpin_not_implemented
(self, gds_backend)
tests/v1/storage_backend/test_gds_backend.py:402
Method
test_pin_worker_msg_serialization
Test PinWorkerMsg encode/decode.
tests/v1/cache_controller/test_messages.py:230
Method
test_pin_worker_ret_msg
Test PinWorkerRetMsg encode/decode.
tests/v1/cache_controller/test_messages.py:662
Method
test_ping
Verify ping executes SELECT 1; health queries cleanly.
tests/v1/storage_backend/test_bigtable_connector.py:788
Method
test_plain_dict_config_merged
Non-dataclass values still go through make_json_safe.
tests/v1/multiprocess/http_apis/test_conf_api.py:70
Function
test_plain_dram_is_single_region
()
tests/v1/distributed/test_l1_single_region.py:34
Method
test_plugin_factory_registered
plugin' factory should be callable via create_l2_adapter_from_registry (smoke test with ImportError).
tests/v1/distributed/test_l2_adapter_factory.py:323
Method
test_plugin_type_registered
plugin' config type should be registered.
tests/v1/distributed/test_l2_adapter_factory.py:317
Method
test_policy_selects_subset_of_adapters
A policy that targets only some adapters should skip others.
tests/v1/distributed/test_store_controller.py:604
Method
test_policy_that_deletes_from_l1
A policy that requests L1 deletion should result in deleted keys.
tests/v1/distributed/test_store_controller.py:556
Method
test_policy_that_skips_all_adapters
A policy returning empty targets should not trigger L2 stores.
tests/v1/distributed/test_store_controller.py:521
Function
test_poll_coordinator_match_deferred_then_resolved
PENDING within deadline defers (None); a list resolves to segments.
tests/v1/multiprocess/test_blend_v3_load_store_opts.py:389
← previous
next →
11,601–11,700 of 13,371, ranked by callers