package
0.37.2
Repository: https://github.com/thanos-io/thanos.git
Documentation: pkg.go.dev

# Functions

NewGroupcache creates a new Groupcache instance.
NewGroupcacheWithConfig creates a new Groupcache instance with the given config.
NewInMemoryCache creates a new thread-safe LRU cache and ensures the total cache size approximately does not exceed maxBytes.
NewInMemoryCacheWithConfig creates a new thread-safe LRU cache and ensures the total cache size approximately does not exceed maxBytes.
NewMemcachedCache makes a new MemcachedCache.
NewRedisCache makes a new RedisCache.
RegisterCacheStatsCollector registers a groupcache metrics collector.

# Variables

# Structs

CachingBucketConfig contains low-level configuration for individual bucket operations.
GroupcacheConfig holds the in-memory cache config.
InMemoryCacheConfig holds the in-memory cache config.
Operation-specific configs.
MemcachedCache is a memcached-based cache.
Generic config for single operation.
RedisCache is a redis cache.
TracingCache includes Fetch operation in the traces.

# Interfaces

Generic best-effort cache.
Codec for encoding and decoding results of Iter call.