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_all_unique
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:126
Method
test_all_workers_same_chunk_different_keys
Test that same chunk_hash with different worker_ids creates distinct entries in storage and can be stored/retrieved independently.
tests/v1/distributed/test_object_key_parallel.py:577
Method
test_alloc_one_returns_single_element
(self)
tests/v1/test_device_id_race.py:72
Function
test_alloc_pinned_ptr_is_page_aligned
(size: int)
tests/v1/test_python_ops_fallback.py:2848
Method
test_alloc_zero_returns_empty
(self)
tests/v1/test_device_id_race.py:65
Method
test_allocate
Test allocate().
tests/v1/storage_backend/test_local_cpu_backend.py:388
Method
test_allocate_and_free
Allocate one huge page worth of memory and free it.
tests/v1/test_memory_management.py:927
Method
test_allocate_basic
Test basic allocation returns a valid MemoryObj.
tests/v1/test_memory_management.py:588
Method
test_allocate_busy_loop_false_single_attempt
allocate with busy_loop=False makes exactly one attempt.
tests/v1/storage_backend/test_gds_backend.py:558
Method
test_allocate_free_cycle
Test a complete allocate-free cycle.
tests/v1/distributed/test_l1_memory_manager.py:439
Method
test_allocate_is_thread_safe
Test that allocate is thread-safe with concurrent allocations.
tests/v1/distributed/test_l1_memory_manager.py:212
Method
test_allocate_multiple_pages
Allocate several huge pages and verify the buffer is usable.
tests/v1/test_memory_management.py:942
Method
test_allocate_multiple_shapes_and_dtypes
Test allocation with multiple shapes and dtypes.
tests/v1/test_memory_management.py:626
Method
test_allocate_retry_then_succeed
allocate retries on None and returns the obj once the allocator succeeds.
tests/v1/storage_backend/test_gds_backend.py:541
Method
test_allocate_returns_correct_count
Test that allocate returns the requested number of memory objects.
tests/v1/distributed/test_l1_memory_manager.py:157
Method
test_allocate_returns_empty_list_on_failure
Test that the memory object list is empty when allocation fails.
tests/v1/distributed/test_l1_memory_manager.py:198
Method
test_allocate_returns_memory_obj
(self, backend)
tests/v1/storage_backend/test_maru_backend.py:258
Method
test_allocate_returns_none_when_out_of_memory
Test that allocation returns None when memory is exhausted.
tests/v1/test_memory_management.py:643
Method
test_allocate_returns_out_of_memory_when_exhausted
Test that allocate returns OUT_OF_MEMORY and empty list when memory is exhausted.
tests/v1/distributed/test_l1_memory_manager.py:180
Method
test_allocate_returns_success_and_memory_objs
Test that allocate returns SUCCESS and valid memory objects.
tests/v1/distributed/test_l1_memory_manager.py:142
Method
test_allocate_routes_through_local_cpu_backend
(self, monkeypatch)
tests/v1/storage_backend/test_nixl_shared_pool.py:551
Method
test_allocate_various_dtypes
Test allocation with various data types.
tests/v1/test_memory_management.py:855
Method
test_allocate_with_format
Test allocation with explicit memory format.
tests/v1/test_memory_management.py:607
Method
test_allocate_with_format
Test allocate() with specific format.
tests/v1/storage_backend/test_local_cpu_backend.py:402
Method
test_allocate_with_layerwise_config
Test allocate() with layerwise configuration.
tests/v1/storage_backend/test_local_cpu_backend.py:415
Method
test_allocate_with_multi_tensor_layout
Test allocation with multiple tensor shapes in the layout.
tests/v1/distributed/test_l1_memory_manager.py:169
Method
test_allocate_with_non_lazy_config
Test allocation with non-lazy (MixedMemoryAllocator) configuration.
tests/v1/distributed/test_l1_memory_manager.py:250
Method
test_allocation_and_free_interleaved
Test interleaved allocation and free operations.
tests/v1/test_memory_management.py:884
Method
test_allocation_exact_size
Test allocation with exact aligned size.
tests/v1/test_address_manager.py:106
Method
test_allocation_failure_out_of_memory
Test that allocation fails when out of memory.
tests/v1/test_address_manager.py:115
Method
test_allocation_failure_too_large
Test allocation failure when requested size is too large.
tests/v1/test_address_manager.py:132
Method
test_allocator_no_shm_name_without_extra_config
Verify that shm_name is None when extra_config does not contain shm_name.
tests/v1/shm_allocator/test_shm_allocator.py:307
Method
test_allocator_receives_shm_name_from_config
Verify that initialize_allocator passes shm_name when extra_config contains shm_name.
tests/v1/shm_allocator/test_shm_allocator.py:293
Method
test_allowed_for_workloads_with_the_parameter
(self, workload: str)
tests/cli/commands/bench/engine_bench/workloads/test_create_workload.py:85
Method
test_already_read_locked
Test that key with both write+read locks returns KEY_IN_WRONG_STATE. This is an unexpected state — normally a key shouldn't be both w
tests/v1/distributed/test_l1_manager.py:1109
Method
test_alternating_start_end
Test alternating start and end patterns.
tests/v1/native_storage_ops/test_pattern_matcher.py:692
Method
test_and_different_sizes_other_longer
(self)
tests/v1/native_storage_ops/test_bitmap.py:255
Method
test_and_different_sizes_result_truncated
(self)
tests/v1/native_storage_ops/test_bitmap.py:242
Method
test_and_same_size_all_overlap
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:217
Method
test_and_same_size_intersection
(self, size)
tests/v1/native_storage_ops/test_bitmap.py:230
Method
test_appends_v1
(self)
tests/cli/commands/bench/engine_bench/test_request_sender.py:135
Function
test_apply_mm_hashes_to_token_ids_handles_non_hex_mm_hash
()
lmcache/integration/vllm/tests/test_mm_hash_utils.py:75
Function
test_apply_mm_hashes_to_token_ids_multiple_placeholders_and_length_mismatch
()
lmcache/integration/vllm/tests/test_mm_hash_utils.py:94
Function
test_apply_mm_hashes_to_token_ids_out_of_bounds_is_safe
()
lmcache/integration/vllm/tests/test_mm_hash_utils.py:85
Method
test_apply_remote_configs_default_override_is_true
Test that default override behavior is True when not specified.
tests/v1/test_config.py:490
Method
test_apply_remote_configs_empty_configs
Test applying empty configs list.
tests/v1/test_config.py:525
Method
test_apply_remote_configs_extra_config_override_false_current_none
Test override=False when current extra_config is None.
tests/v1/test_config.py:477
Method
test_apply_remote_configs_extra_config_override_false_merge
Test override=False merges extra_config dictionaries.
tests/v1/test_config.py:455
Method
test_apply_remote_configs_extra_config_override_true
Test override=True completely replaces extra_config.
tests/v1/test_config.py:440
Method
test_apply_remote_configs_invalid_config_item
Test that invalid config items are skipped.
tests/v1/test_config.py:534
Method
test_apply_remote_configs_multiple_items_mixed_override
Test applying multiple config items with different override settings.
tests/v1/test_config.py:504
Method
test_apply_remote_configs_nonexistent_key
Test applying config with non-existent key.
tests/v1/test_config.py:547
Method
test_apply_remote_configs_override_false_basic_set_when_default
Test override=False for basic config - set value if using default.
tests/v1/test_config.py:427
Method
test_apply_remote_configs_override_false_basic_skip
Test override=False for basic config - skip if user-set.
tests/v1/test_config.py:414
Method
test_apply_remote_configs_override_true
Test that override=True completely replaces the config value.
tests/v1/test_config.py:403
Method
test_approximate_length
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:149
Method
test_approximate_length
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:171
Function
test_arbitrary_config_keys_round_trip
(configs, expected_key)
tests/v1/multiprocess/http_apis/test_conf_api.py:113
Method
test_args_dict
(self)
tests/v1/mp_observability/trace/test_codecs.py:139
Method
test_asdict_shape_is_stable
(self)
tests/v1/distributed/test_encoded_object_key.py:68
Function
test_async_lookup_and_prefetch_layerwise
(autorelease_v1)
tests/v1/test_cache_engine.py:986
Function
test_async_lookup_and_prefetch_layerwise_partial_layer_missing
(autorelease_v1)
tests/v1/test_cache_engine.py:1060
Function
test_async_response_decoded_as_sync
()
tests/v1/storage_backend/test_pd_backend_async.py:880
Method
test_async_save_bytes_metadata_write_failure
Test that metadata write failures during task execution trigger cache cleanup.
tests/v1/storage_backend/test_gds_backend.py:368
Method
test_async_save_bytes_to_disk_write_error_handling
Test error handling when GDS write operation fails.
tests/v1/storage_backend/test_gds_backend.py:341
Method
test_at_least_one_when_ratio_positive
Matches ``LRUEvictionPolicy`` — a positive ratio that rounds to zero still yields one eviction so the caller makes forward progress.
tests/v1/distributed/test_isolated_lru_eviction_policy.py:103
Function
test_atexit_registration
Test that cleanup handler is registered at initialization.
tests/v1/plugin/test_runtime_plugin_launcher.py:356
Function
test_attempt_permute_preserves_bare_tensor
A bare torch.Tensor input (cross-layer shape) must pass through attempt_permute_to_contiguous_view unchanged — no list wrapping — so the Disco
tests/v1/gpu_connector/test_utils_shape_desc.py:183
Function
test_attempt_permute_recurses_all_shapes
attempt_permute_to_contiguous_view must descend into every DiscoverableKVCache shape and permute non-contiguous tensor leaves.
tests/v1/gpu_connector/test_utils_shape_desc.py:193
Method
test_auto_exit_configuration
(self)
tests/v1/lookup_client/test_chunk_statistics_lookup_client.py:227
Method
test_b128_first_8_hex_encode_slot_index
(self)
tests/v1/test_nixl_doca_memos.py:112
Method
test_b128_keys_are_128bit_hex
(self)
tests/v1/test_nixl_doca_memos.py:103
Method
test_b128_keys_are_unique
(self)
tests/v1/test_nixl_doca_memos.py:108
Method
test_b128_max_pool_size_is_2_32
(self)
tests/v1/test_nixl_doca_memos.py:128
Method
test_b128_rejects_pool_size_above_max
(self)
tests/v1/test_nixl_doca_memos.py:124
Method
test_bad_byte_length_raises
(self)
tests/v1/mp_coordinator/test_blend_directory.py:254
Method
test_bad_callback_doesnt_block_good
(self, bus)
tests/v1/mp_observability/test_event_bus.py:270
Method
test_bad_chunk_size
(self)
tests/v1/mp_coordinator/test_blend_directory.py:127
Method
test_bad_magic_rejected
(self, trace_path)
tests/v1/mp_observability/trace/test_recorder.py:206
Method
test_bad_probe_stride
(self)
tests/v1/mp_coordinator/test_blend_directory.py:131
Function
test_banner_contains_version_links_and_opt_out_hint
()
tests/test_banner.py:35
Function
test_banner_disabled_by_env_var
(monkeypatch, value)
tests/test_banner.py:70
Function
test_banner_is_colored_on_tty_stream
()
tests/test_banner.py:52
Function
test_banner_is_plain_on_non_tty_stream
()
tests/test_banner.py:46
Function
test_banner_not_disabled_by_falsy_env_var
(monkeypatch)
tests/test_banner.py:77
Function
test_banner_prints_at_most_once_per_process
()
tests/test_banner.py:60
Method
test_bare_cuda_no_gpu_selects_first
Bare 'cuda' with no GPU falls back to device 0.
tests/v1/storage_backend/test_path_sharder.py:147
Method
test_bare_cuda_uses_current_device
Bare 'cuda' resolves to torch_dev.current_device().
tests/v1/storage_backend/test_path_sharder.py:132
Method
test_base_class_itself_is_skipped
(self, temp_pkg: Tuple[str, Path])
tests/v1/test_subclass_discovery.py:132
Method
test_basic
(self)
tests/cli/commands/bench/test_server_bench.py:176
Method
test_basic
(self)
tests/v1/distributed/test_bitmap_ops.py:322
Method
test_basic_acquire_release
Test basic lock acquisition and release.
tests/v1/cache_controller/test_locks.py:263
Method
test_basic_batching
Test basic message batching functionality.
tests/v1/storage_backend/test_batched_message_sender.py:79
Function
test_basic_batching_with_skip
Skipped items are dropped and reported indices stay in original space.
tests/v1/multiprocess/test_batched_iteration_with_skip.py:13
Method
test_basic_calculation
(self, mock_fetch)
tests/cli/commands/bench/engine_bench/test_config.py:261
Method
test_basic_insert_and_contains
(self)
tests/tools/test_cache_simulator.py:26
Method
test_basic_insert_and_contains
(self)
tests/tools/test_cache_simulator.py:78
Method
test_basic_key
(self)
tests/cli/commands/bench/test_server_bench.py:200
Method
test_basic_lookup_communication
Test basic lookup communication between client and server.
tests/v1/lookup_client/test_lmcache_lookup_client.py:115
Method
test_basic_parsing
(self, base_namespace)
tests/cli/commands/bench/engine_bench/test_config.py:136
← previous
next →
9,001–9,100 of 13,371, ranked by callers