Skip to main content

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

NameTypeDescription
ccache.CacheThe underlying cache.Cache instance to be wrapped. This cache will be enhanced with Kubernetes-specific behaviors.

Returns

TypeDescription
cache.CacheA new cache.Cache instance wrapped with Kubernetes-specific caching logic.