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
↓ 1 callers
Function
warmup_engine
(executor)
benchmarks/multi_round_qa/multi-round-qa.py:566
↓ 1 callers
Function
warmup_engine
(executor: RequestExecutor)
benchmarks/rag/rag.py:224
↓ 1 callers
Function
white_space_fix
(text)
benchmarks/rag/utils.py:167
↓ 1 callers
Function
wrap_kv_caches
(kv_caches: dict[str, torch.Tensor])
lmcache/integration/vllm/vllm_multi_process_adapter.py:134
↓ 1 callers
Function
wrap_one_kv_cache
Dispatch by ``tensor.device.type`` via the platform registry. Concrete factories self-register at import time (CUDA in ``lmcache.v1.platform.
lmcache/integration/vllm/vllm_multi_process_adapter.py:187
↓ 1 callers
Method
write_async
Enqueue a ``cuFileWriteAsync`` on the stream.
lmcache/v1/gpu_connector/_cufile_async.py:338
↓ 1 callers
Method
write_file
(self, buffer, path)
lmcache/v1/storage_backend/local_disk_backend.py:622
↓ 1 callers
Method
writer
(writer_id)
tests/v1/cache_controller/test_locks.py:68
↓ 1 callers
Method
zero
(self, offset: int, length: int)
tests/v1/shm_allocator/verify_shmfile_tcp.py:100
↓ 1 callers
Function
zmq_pull_server
()
examples/disagg_prefill/disagg_proxy_server.py:355
Function
ApplyCBE
ApplyCBE creates the CacheBlendEngine if absent, or patches it (spec only) if it already exists. The status subresource is left untouched. Mirrors App
operator/test/utils/cbe.go:65
Function
ApplyLMC
ApplyLMC creates the LMCacheEngine if absent, or patches it (spec only) if it already exists. The status subresource is left untouched.
operator/test/utils/lmc.go:56
Function
BuildCBServiceMonitor
BuildCBServiceMonitor creates the ServiceMonitor CR for the CacheBlendEngine, reusing the shared name/namespace/spec-keyed core. Callers must ensure C
operator/internal/resources/cacheblend_engine.go:183
Function
BuildCoordinatorMetricsService
BuildCoordinatorMetricsService creates a headless Service for Prometheus scraping of the coordinator. Callers must ensure prometheus is enabled.
operator/internal/resources/coordinator_service.go:107
Function
BuildCoordinatorServiceMonitor
BuildCoordinatorServiceMonitor creates the ServiceMonitor CR for the coordinator. Callers must ensure CoordinatorServiceMonitorEnabled is true.
operator/internal/resources/coordinator_service.go:132
Function
CBServiceMonitorEnabled
CBServiceMonitorEnabled reports whether a ServiceMonitor should be created for the given CacheBlendEngine. It reuses the shared spec-keyed predicate s
operator/internal/resources/cacheblend_engine.go:176
Function
CoordinatorServiceMonitorEnabled
CoordinatorServiceMonitorEnabled reports whether a ServiceMonitor should be created for the coordinator.
operator/internal/resources/coordinator_service.go:72
Function
CreateDockerConfigJSONSecret
CreateDockerConfigJSONSecret creates a kubernetes.io/dockerconfigjson pull Secret in the given namespace, equivalent to kubectl create secret docker
operator/test/utils/secret.go:46
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheBlendEngineSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:240
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheBlendEngineStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:267
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoordinatorConnectionSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:312
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:327
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvictionSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:357
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:387
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InjectionSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:422
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L1BackendSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:437
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2BackendSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:477
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheCoordinatorSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:685
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheCoordinatorStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:707
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheEngineSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:891
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheEngineStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:918
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:948
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RESPL2AdapterSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:978
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawL2AdapterSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:1000
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
operator/api/v1alpha1/zz_generated.deepcopy.go:1015
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:1055
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:1087
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:75
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:107
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:506
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:538
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:736
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:768
Function
DeleteLMCAndWaitGC
DeleteLMCAndWaitGC issues a foreground delete on the CR and waits until both the CR and its primary owned resources (DaemonSet, lookup Service, connec
operator/test/utils/lmc.go:168
Method
Deserialize
(data: bytes)
lmcache/v1/multiprocess/custom_types.py:110
Method
DestroyInstance
()
lmcache/observability.py:838
Method
DestroyInstance
()
lmcache/v1/cache_controller/observability.py:162
Function
GetConnectionConfig
GetConnectionConfig fetches the <name>-connection ConfigMap and parses kv-transfer-config.json into a typed struct. Returns an error if the ConfigMap
operator/test/utils/lmc.go:129
Method
GetInstance
()
lmcache/v1/cache_controller/observability.py:147
Method
GetLoop
(cls)
benchmarks/multi_round_qa/utils.py:116
Method
GetLoop
(cls)
benchmarks/rag/utils.py:124
Function
GetNonEmptyLines
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
operator/test/utils/utils.go:140
Method
GetOrCreate
( metadata: LMCacheMetadata, config: Optional["LMCacheEngineConfig"] = None, )
lmcache/observability.py:1851
Method
GetOrCreate
(metadata: LMCacheMetadata)
lmcache/usage_context.py:327
Function
HTTPGetJSON
HTTPGetJSON issues a GET against url and decodes the response body into out. Returns an error if the request fails, the status is not 2xx, or the body
operator/test/utils/http.go:52
Function
HTTPGetText
HTTPGetText issues a GET against url and returns the raw response body as a string. Used for endpoints that don't speak JSON (Prometheus text expositi
operator/test/utils/http.go:81
Function
HTTPPostJSON
HTTPPostJSON issues a POST with a JSON-encoded body and decodes the 2xx response body into out (when non-nil). Returns the parsed JSON status code so
operator/test/utils/http.go:105
Function
InstallCertManager
InstallCertManager applies the upstream cert-manager static manifest and blocks until its controller, webhook, and CA-injector Deployments report Avai
operator/test/utils/utils.go:74
Function
IsCertManagerCRDsInstalled
IsCertManagerCRDsInstalled reports whether cert-manager's CRDs are already registered in the target cluster. Used to skip installation (and teardown)
operator/test/utils/utils.go:59
Function
LoadGolden
LoadGolden returns the raw bytes of a golden snapshot by name (no path). Golden files live under fixtures/golden/ and represent expected JSON payloads
operator/test/utils/fixtures.go:51
Function
LoadImageToKindClusterWithName
LoadImageToKindClusterWithName loads a local docker image to the kind cluster
operator/test/utils/utils.go:123
Function
NewCBEFromFixture
NewCBEFromFixture loads a fixture YAML, decodes it as a CacheBlendEngine, and overrides metadata.name and metadata.namespace with the supplied values.
operator/test/utils/cbe.go:40
Function
NewLMCFromFixture
NewLMCFromFixture loads a fixture YAML, decodes it as an LMCacheEngine, and overrides metadata.name and metadata.namespace with the supplied values. C
operator/test/utils/fixtures.go:62
Function
NotAudit
Decorator to mark methods that should not be audited. These methods will be directly forwarded to the real connector without logging.
lmcache/v1/storage_backend/connector/base_connector.py:22
Function
OperatorRoot
OperatorRoot returns the absolute path of the operator/ directory.
operator/test/utils/runner.go:43
Function
PatchLMCSpec
PatchLMCSpec re-fetches the CR, applies mutate to the spec, and submits a merge patch. The mutate callback receives a pointer to the spec and must mut
operator/test/utils/lmc.go:150
Function
PortForward
PortForward starts a `kubectl port-forward` subprocess and waits until the first local port begins accepting TCP connections. Each port arg follows ku
operator/test/utils/portforward.go:51
Method
Reconcile
+kubebuilder:rbac:groups=lmcache.lmcache.ai,resources=lmcachecoordinators,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=lmc
operator/internal/controller/lmcachecoordinator_controller.go:52
Method
Reconcile
+kubebuilder:rbac:groups=lmcache.lmcache.ai,resources=cacheblendengines,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=lmcac
operator/internal/controller/cacheblendengine_controller.go:53
Function
ResolveCoordinatorConnection
ResolveCoordinatorConnection returns a copy of conn with URL populated. When conn references an LMCacheCoordinator (Ref), it is looked up in the given
operator/internal/resources/coordinator_resolve.go:35
Function
RunMake
RunMake runs `make <args...>` from the operator/ directory and returns the combined output. It is the no-Chdir replacement for the working- directory
operator/test/utils/runner.go:63
Method
Serialize
(obj: "DeviceIPCWrapper")
lmcache/v1/multiprocess/custom_types.py:106
Method
SetupWithManager
SetupWithManager sets up the controller with the Manager.
operator/internal/controller/lmcachecoordinator_controller.go:100
Method
SetupWithManager
SetupWithManager sets up the controller with the Manager.
operator/internal/controller/cacheblendengine_controller.go:119
Function
TestBuildCBConnectionConfigMap_CustomBlendAndPort
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:316
Function
TestBuildCBConnectionConfigMap_Default
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:275
Function
TestBuildCBConnectionConfigMap_PortMatchesEngineArgs
TestBuildCBConnectionConfigMap_PortMatchesEngineArgs asserts the connection ConfigMap's lmcache.mp.port and the engine DaemonSet's --port never drift,
operator/internal/resources/cacheblend_engine_test.go:341
Function
TestBuildCBEngineArgs_BlendFlags
=========================== BuildCBEngineArgs ===========================
operator/internal/resources/cacheblend_engine_test.go:51
Function
TestBuildCBEngineArgs_ExtraArgsAfterBlendFlags
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:71
Function
TestBuildCBEngineDaemonSet_AMDNoRuntimeClass
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:197
Function
TestBuildCBEngineDaemonSet_DefaultImage
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:187
Function
TestBuildCBEngineDaemonSet_GPUAndSecurity
=========================== BuildCBEngineDaemonSet ===========================
operator/internal/resources/cacheblend_engine_test.go:101
Function
TestBuildCBEngineDaemonSet_ImagePullSecrets
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:175
Function
TestBuildCBEngineDaemonSet_NoGPUResourceClaim
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:151
Function
TestBuildCBEngineLookupService_Local
=========================== BuildCBEngineLookupService / MetricsService ===========================
operator/internal/resources/cacheblend_engine_test.go:217
Function
TestBuildCBEngineMetricsService_Headless
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:236
Function
TestBuildCBEngine_ChunkSizeConsistency
TestBuildCBEngine_ChunkSizeConsistency asserts the engine's chunk-size is 256 (the only value CacheBlend supports — block_size 64 * 4), matching the l
operator/internal/resources/cacheblend_engine_test.go:371
Function
TestBuildConnectionConfigMap_CustomPort
(t *testing.T)
operator/internal/resources/resources_test.go:947
Function
TestBuildConnectionConfigMap_Default
=========================== BuildConnectionConfigMap ===========================
operator/internal/resources/resources_test.go:904
Function
TestBuildContainerArgs_CoordinatorDisabledWithoutURL
(t *testing.T)
operator/internal/resources/coordinator_test.go:164
Function
TestBuildContainerArgs_CoordinatorURL
(t *testing.T)
operator/internal/resources/coordinator_test.go:143
Function
TestBuildContainerArgs_CustomEviction
(t *testing.T)
operator/internal/resources/resources_test.go:274
Function
TestBuildContainerArgs_CustomPrometheusPort
(t *testing.T)
operator/internal/resources/resources_test.go:303
Function
TestBuildContainerArgs_CustomServer
(t *testing.T)
operator/internal/resources/resources_test.go:256
Function
TestBuildContainerArgs_Defaults
=========================== BuildContainerArgs ===========================
operator/internal/resources/resources_test.go:237
Function
TestBuildContainerArgs_ExtraArgs
(t *testing.T)
operator/internal/resources/resources_test.go:480
Function
TestBuildContainerArgs_L2CustomPolicies
(t *testing.T)
operator/internal/resources/resources_test.go:444
Function
TestBuildContainerArgs_L2RESP
(t *testing.T)
operator/internal/resources/resources_test.go:316
Function
TestBuildContainerArgs_L2RESPCustomWorkers
(t *testing.T)
operator/internal/resources/resources_test.go:387
Function
TestBuildContainerArgs_L2RESPWithAuth
(t *testing.T)
operator/internal/resources/resources_test.go:357
← previous
next →
4,801–4,900 of 13,371, ranked by callers