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

# Packages

# Functions

LabelMatchersToString converts the given label matchers to string format.
NewCachingBucket creates new caching bucket with provided configuration.
NewCachingBucketFromYaml uses YAML configuration to create new caching bucket.
NewCommonMetrics initializes common metrics for index cache.
NewFilteredIndexCache creates a filtered index cache based on enabled items.
NewIndexCache initializes and returns new index cache.
NewInMemoryIndexCache creates a new thread-safe LRU cache for index entries and ensures the total cache size approximately does not exceed maxBytes.
NewInMemoryIndexCacheWithConfig creates a new thread-safe LRU cache for index entries and ensures the total cache size approximately does not exceed maxBytes.
NewMemcachedIndexCache is alias NewRemoteIndexCache for compatible.
NewRemoteIndexCache makes a new RemoteIndexCache.
NewTracingIndexCache creates an index cache wrapper with traces instrumentation.

# Constants

Groupcache cache-provider for caching bucket.
In-memory cache-provider for caching bucket.
Memcached cache-provider for caching bucket.
Redis cache-provider for caching bucket.

# Variables

# Structs

CacheKey defines cache key used in index cache.
CachingBucket implementation that provides some caching features, based on passed configuration.
CachingWithBackendConfig is a configuration of caching bucket used by Store component.
Common metrics that should be used by all cache implementations.
IndexCacheConfig specifies the index cache config.
InMemoryIndexCacheConfig holds the in-memory index cache config.
JSONIterCodec encodes iter results into JSON.
RemoteIndexCache is a memcached-based index cache.

# Interfaces

IndexCache is the interface exported by index cache backends.

# Type aliases

BucketCacheProvider is a type used to evaluate all bucket cache providers.