package
0.0.0-20241217062345-852b9c5a8d98
Repository: https://github.com/tianlin0/plat-lib.git
Documentation: pkg.go.dev
# Functions
New instantiates a new cache entry.
NewChain instantiates a new cache aggregator.
NewLoadable instanciates a new cache that uses a function to load data.
NewMetric creates a new cache with metrics and a given cache storage.
# 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.
# 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