MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

↓ 1 callersFunctionwarmup_engine
(executor)
benchmarks/multi_round_qa/multi-round-qa.py:566
↓ 1 callersFunctionwarmup_engine
(executor: RequestExecutor)
benchmarks/rag/rag.py:224
↓ 1 callersFunctionwhite_space_fix
(text)
benchmarks/rag/utils.py:167
↓ 1 callersFunctionwrap_kv_caches
(kv_caches: dict[str, torch.Tensor])
lmcache/integration/vllm/vllm_multi_process_adapter.py:134
↓ 1 callersFunctionwrap_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 callersMethodwrite_async
Enqueue a ``cuFileWriteAsync`` on the stream.
lmcache/v1/gpu_connector/_cufile_async.py:338
↓ 1 callersMethodwrite_file
(self, buffer, path)
lmcache/v1/storage_backend/local_disk_backend.py:622
↓ 1 callersMethodwriter
(writer_id)
tests/v1/cache_controller/test_locks.py:68
↓ 1 callersMethodzero
(self, offset: int, length: int)
tests/v1/shm_allocator/verify_shmfile_tcp.py:100
↓ 1 callersFunctionzmq_pull_server
()
examples/disagg_prefill/disagg_proxy_server.py:355
FunctionApplyCBE
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
FunctionApplyLMC
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
FunctionBuildCBServiceMonitor
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
FunctionBuildCoordinatorMetricsService
BuildCoordinatorMetricsService creates a headless Service for Prometheus scraping of the coordinator. Callers must ensure prometheus is enabled.
operator/internal/resources/coordinator_service.go:107
FunctionBuildCoordinatorServiceMonitor
BuildCoordinatorServiceMonitor creates the ServiceMonitor CR for the coordinator. Callers must ensure CoordinatorServiceMonitorEnabled is true.
operator/internal/resources/coordinator_service.go:132
FunctionCBServiceMonitorEnabled
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
FunctionCoordinatorServiceMonitorEnabled
CoordinatorServiceMonitorEnabled reports whether a ServiceMonitor should be created for the coordinator.
operator/internal/resources/coordinator_service.go:72
FunctionCreateDockerConfigJSONSecret
CreateDockerConfigJSONSecret creates a kubernetes.io/dockerconfigjson pull Secret in the given namespace, equivalent to kubectl create secret docker
operator/test/utils/secret.go:46
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheBlendEngineSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:240
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheBlendEngineStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:267
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoordinatorConnectionSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:312
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:327
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvictionSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:357
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:387
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InjectionSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:422
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L1BackendSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:437
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2BackendSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:477
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheCoordinatorSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:685
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheCoordinatorStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:707
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheEngineSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:891
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LMCacheEngineStatus.
operator/api/v1alpha1/zz_generated.deepcopy.go:918
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:948
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RESPL2AdapterSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:978
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawL2AdapterSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:1000
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
operator/api/v1alpha1/zz_generated.deepcopy.go:1015
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:1055
MethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorSpec.
operator/api/v1alpha1/zz_generated.deepcopy.go:1087
MethodDeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:75
MethodDeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:107
MethodDeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:506
MethodDeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:538
MethodDeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:736
MethodDeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
operator/api/v1alpha1/zz_generated.deepcopy.go:768
FunctionDeleteLMCAndWaitGC
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
MethodDeserialize
(data: bytes)
lmcache/v1/multiprocess/custom_types.py:110
MethodDestroyInstance
()
lmcache/observability.py:838
MethodDestroyInstance
()
lmcache/v1/cache_controller/observability.py:162
FunctionGetConnectionConfig
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
MethodGetInstance
()
lmcache/v1/cache_controller/observability.py:147
MethodGetLoop
(cls)
benchmarks/multi_round_qa/utils.py:116
MethodGetLoop
(cls)
benchmarks/rag/utils.py:124
FunctionGetNonEmptyLines
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
MethodGetOrCreate
( metadata: LMCacheMetadata, config: Optional["LMCacheEngineConfig"] = None, )
lmcache/observability.py:1851
MethodGetOrCreate
(metadata: LMCacheMetadata)
lmcache/usage_context.py:327
FunctionHTTPGetJSON
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
FunctionHTTPGetText
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
FunctionHTTPPostJSON
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
FunctionInstallCertManager
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
FunctionIsCertManagerCRDsInstalled
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
FunctionLoadGolden
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
FunctionLoadImageToKindClusterWithName
LoadImageToKindClusterWithName loads a local docker image to the kind cluster
operator/test/utils/utils.go:123
FunctionNewCBEFromFixture
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
FunctionNewLMCFromFixture
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
FunctionNotAudit
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
FunctionOperatorRoot
OperatorRoot returns the absolute path of the operator/ directory.
operator/test/utils/runner.go:43
FunctionPatchLMCSpec
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
FunctionPortForward
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
MethodReconcile
+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
MethodReconcile
+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
FunctionResolveCoordinatorConnection
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
FunctionRunMake
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
MethodSerialize
(obj: "DeviceIPCWrapper")
lmcache/v1/multiprocess/custom_types.py:106
MethodSetupWithManager
SetupWithManager sets up the controller with the Manager.
operator/internal/controller/lmcachecoordinator_controller.go:100
MethodSetupWithManager
SetupWithManager sets up the controller with the Manager.
operator/internal/controller/cacheblendengine_controller.go:119
FunctionTestBuildCBConnectionConfigMap_CustomBlendAndPort
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:316
FunctionTestBuildCBConnectionConfigMap_Default
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:275
FunctionTestBuildCBConnectionConfigMap_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
FunctionTestBuildCBEngineArgs_BlendFlags
=========================== BuildCBEngineArgs ===========================
operator/internal/resources/cacheblend_engine_test.go:51
FunctionTestBuildCBEngineArgs_ExtraArgsAfterBlendFlags
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:71
FunctionTestBuildCBEngineDaemonSet_AMDNoRuntimeClass
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:197
FunctionTestBuildCBEngineDaemonSet_DefaultImage
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:187
FunctionTestBuildCBEngineDaemonSet_GPUAndSecurity
=========================== BuildCBEngineDaemonSet ===========================
operator/internal/resources/cacheblend_engine_test.go:101
FunctionTestBuildCBEngineDaemonSet_ImagePullSecrets
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:175
FunctionTestBuildCBEngineDaemonSet_NoGPUResourceClaim
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:151
FunctionTestBuildCBEngineLookupService_Local
=========================== BuildCBEngineLookupService / MetricsService ===========================
operator/internal/resources/cacheblend_engine_test.go:217
FunctionTestBuildCBEngineMetricsService_Headless
(t *testing.T)
operator/internal/resources/cacheblend_engine_test.go:236
FunctionTestBuildCBEngine_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
FunctionTestBuildConnectionConfigMap_CustomPort
(t *testing.T)
operator/internal/resources/resources_test.go:947
FunctionTestBuildConnectionConfigMap_Default
=========================== BuildConnectionConfigMap ===========================
operator/internal/resources/resources_test.go:904
FunctionTestBuildContainerArgs_CoordinatorDisabledWithoutURL
(t *testing.T)
operator/internal/resources/coordinator_test.go:164
FunctionTestBuildContainerArgs_CoordinatorURL
(t *testing.T)
operator/internal/resources/coordinator_test.go:143
FunctionTestBuildContainerArgs_CustomEviction
(t *testing.T)
operator/internal/resources/resources_test.go:274
FunctionTestBuildContainerArgs_CustomPrometheusPort
(t *testing.T)
operator/internal/resources/resources_test.go:303
FunctionTestBuildContainerArgs_CustomServer
(t *testing.T)
operator/internal/resources/resources_test.go:256
FunctionTestBuildContainerArgs_Defaults
=========================== BuildContainerArgs ===========================
operator/internal/resources/resources_test.go:237
FunctionTestBuildContainerArgs_ExtraArgs
(t *testing.T)
operator/internal/resources/resources_test.go:480
FunctionTestBuildContainerArgs_L2CustomPolicies
(t *testing.T)
operator/internal/resources/resources_test.go:444
FunctionTestBuildContainerArgs_L2RESP
(t *testing.T)
operator/internal/resources/resources_test.go:316
FunctionTestBuildContainerArgs_L2RESPCustomWorkers
(t *testing.T)
operator/internal/resources/resources_test.go:387
FunctionTestBuildContainerArgs_L2RESPWithAuth
(t *testing.T)
operator/internal/resources/resources_test.go:357
← previousnext →4,801–4,900 of 13,371, ranked by callers