package
4.2.0
Repository: https://github.com/eko/gocache.git
Documentation: pkg.go.dev

# Functions

New instantiates a new cache entry.
NewChain instantiates a new cache aggregator.
NewLoadable instantiates a new cache that uses a function to load data.
NewMetric creates a new cache with metrics and a given cache storage.
NewMockCacheInterface creates a new mock instance.
NewMockCacheKeyGenerator creates a new mock instance.
NewMockSetterCacheInterface creates a new mock instance.

# Constants

CacheType represents the cache type as a string value.
ChainType represents the chain cache type as a string value.
LoadableType represents the loadable cache type as a string value.
MetricType represents the metric cache type as a string value.

# Structs

Cache represents the configuration needed by a cache.
ChainCache represents the configuration needed by a cache aggregator.
LoadableCache represents a cache that uses a function to load data.
MetricCache is the struct that specifies metrics available for different caches.
MockCacheInterface is a mock of CacheInterface interface.
MockCacheInterfaceMockRecorder is the mock recorder for MockCacheInterface.
MockCacheKeyGenerator is a mock of CacheKeyGenerator interface.
MockCacheKeyGeneratorMockRecorder is the mock recorder for MockCacheKeyGenerator.
MockSetterCacheInterface is a mock of SetterCacheInterface interface.
MockSetterCacheInterfaceMockRecorder is the mock recorder for MockSetterCacheInterface.

# Interfaces

CacheInterface represents the interface for all caches (aggregates, metric, memory, redis, ...).
No description provided by the author
SetterCacheInterface represents the interface for caches that allows storage (for instance: memory, redis, ...).

# Type aliases

No description provided by the author