package
0.2.0-alpha.14
Repository: https://github.com/onexstack/onex.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

L2WithDisableCache enables or disables the local cache for L2.
L2WithMetrics sets whether cache statistics are kept during the cache's lifetime for L2 cache.
L2WithNumCounters sets the number of counters for L2 cache.
New instantiates a new delegate cache entry.
NewChain instantiates a new cache aggregator.
NewL2 instantiates a new L2 cache.
NewL2Options instantiates a new L2Options with default values.
NewLoadable instanciates a new cache that uses a function to load data.
NewMockKeyGetter creates a new mock instance.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ChainCache represents the configuration needed by a cache aggregator.
DelegateCache is a representative cache used to represent the store.
L2Cache represents a two-level cache configuration.
L2Options represents the options for L2 cache configuration.
LoadableCache represents a cache that uses a function to load data.
MockKeyGetter is a mock of KeyGetter interface.
MockKeyGetterMockRecorder is the mock recorder for MockKeyGetter.

# Interfaces

Cache represents the interface for all caches (aggregates, metric, memory, redis, ...).
KeyGetter is an interface for objects that can provide a cache key.

# Type aliases

CacheType represents the type of cache, such as "noop", "l2", "chain", or "loadable".
KeyFunc knows how to make a key from an object.
L2Option represents a cache option function.
LoadFunction is a function type for loading data into the cache.