client-go: Index | Files

package cached

import ""


Package Files



var (
    ErrCacheEmpty    = errors.New("the cache has not been filled yet")
    ErrCacheNotFound = errors.New("not found")

func NewMemCacheClient Uses

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.

Package cached imports 9 packages (graph) and is imported by 64 packages. Updated 2018-06-25. Refresh now. Tools for package owners.