# Functions
NewKeyValCache instantiates and returns a KeyValCache.
NewMemCache creates an initialised MemCache.
NewMemoizeCache creates a memoize cache.
NewMemoizeMetrics creates a MemoizeMetrics struct that records prometheus metrics that tracks activity in the memoize cache.
NewMetricsCache creates a MetricsCache.
NewWrapper creates a new Wrapper instance.
WithLocalCache lets you configure the LocalCache e.g.
WithMarshalFunc lets you set how data is marshaled into the cache.
WithTTL sets the TTL for keys in the cache.
WithUnmarshalFunc lets you set how data is unmarshaled from the cache.
# Structs
KeyValCache is a cache that stores KeyValue pairs.
MemCache is an in memory cache that stores a map of keys to a map of fields and their values.
MemoizeMetrics implements the memoizeMetrics interface.
MetricsCache is a decorator for a Cache that uses prometheus to track read/write activity in the cache.
Wrapper wraps a given cache with logic to store features and segments passed from the golang sdk it translates them from the sdk representation to our rest representation and buckets them per environment this means the proxy can store all the data from all sdk instances in one large cache but to each sdk it appears to have it's own unique cache.
# Interfaces
Cache is the interface for a key value cache.