...

Package memory

import "k8s.io/client-go/discovery/cached/memory"
Overview
Index

Overview ▾

Variables

Error Constants

var (
    ErrCacheNotFound = errors.New("not found")
)

func NewMemCacheClient

func NewMemCacheClient(delegate discovery.DiscoveryInterface) discovery.CachedDiscoveryInterface

NewMemCacheClient creates a new CachedDiscoveryInterface which caches discovery information in memory and will stay up-to-date if Invalidate is called with regularity.

NOTE: The client will NOT resort to live lookups on cache misses.