WrapK8sCache
Wraps an existing cache.Cache instance within a K8sCacheWrapper.
def WrapK8sCache(
c: cache.Cache
) - > cache.Cache
Wraps an existing cache.Cache instance with a K8sCacheWrapper, providing Kubernetes-specific caching functionalities. Callers use this to adapt a generic cache for use within a Kubernetes environment.
Parameters
| Name | Type | Description |
|---|---|---|
| c | cache.Cache | The underlying cache.Cache instance to be wrapped. This cache will be enhanced with Kubernetes-specific behaviors. |
Returns
| Type | Description |
|---|---|
cache.Cache | A new cache.Cache instance wrapped with Kubernetes-specific caching logic. |