From a35420592b19080b960edc0d291063e56bddbe4c Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:52:18 -0800 Subject: [PATCH] Graduate FIFO and Redis cache from experimental Remove experimental markers for in-memory (FIFO) and Redis caches: - Remove WarnExperimentalUse("In-memory (FIFO) cache") call and unused import - Remove WarnExperimentalUse("Redis cache") call - Remove from experimental features list in v1-guarantees.md Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com> --- docs/configuration/v1-guarantees.md | 1 - pkg/chunk/cache/fifo_cache.go | 3 --- pkg/chunk/cache/redis_cache.go | 1 - 3 files changed, 5 deletions(-) diff --git a/docs/configuration/v1-guarantees.md b/docs/configuration/v1-guarantees.md index a7d9a8ded7c..b7776faa9e0 100644 --- a/docs/configuration/v1-guarantees.md +++ b/docs/configuration/v1-guarantees.md @@ -47,7 +47,6 @@ Currently experimental features are: - Sharding of tenants across multiple instances (enabled via `-alertmanager.sharding-enabled`) - Receiver integrations firewall (configured via `-alertmanager.receivers-firewall.*`) - Memcached client DNS-based service discovery. -- In-memory (FIFO) and Redis cache. - gRPC Store. - TLS configuration in gRPC and HTTP clients. - TLS configuration in Etcd client. diff --git a/pkg/chunk/cache/fifo_cache.go b/pkg/chunk/cache/fifo_cache.go index 15e135e4a4e..1b7bc044225 100644 --- a/pkg/chunk/cache/fifo_cache.go +++ b/pkg/chunk/cache/fifo_cache.go @@ -16,7 +16,6 @@ import ( "github.com/prometheus/client_golang/prometheus/promauto" "github.com/cortexproject/cortex/pkg/util/flagext" - util_log "github.com/cortexproject/cortex/pkg/util/log" ) const ( @@ -93,8 +92,6 @@ type cacheEntry struct { // NewFifoCache returns a new initialised FifoCache of size. func NewFifoCache(name string, cfg FifoCacheConfig, reg prometheus.Registerer, logger log.Logger) *FifoCache { - util_log.WarnExperimentalUse("In-memory (FIFO) cache") - if cfg.DeprecatedSize > 0 { flagext.DeprecatedFlagsUsed.Inc() level.Warn(logger).Log("msg", "running with DEPRECATED flag fifocache.size, use fifocache.max-size-items or fifocache.max-size-bytes instead", "cache", name) diff --git a/pkg/chunk/cache/redis_cache.go b/pkg/chunk/cache/redis_cache.go index 2d20f759b4e..4ac9850b1da 100644 --- a/pkg/chunk/cache/redis_cache.go +++ b/pkg/chunk/cache/redis_cache.go @@ -24,7 +24,6 @@ type RedisCache struct { // NewRedisCache creates a new RedisCache func NewRedisCache(name string, redisClient *RedisClient, reg prometheus.Registerer, logger log.Logger) *RedisCache { - util_log.WarnExperimentalUse("Redis cache") cache := &RedisCache{ name: name, redis: redisClient,