Skip to content

Commit 600b2e8

Browse files
committed
a
1 parent 3b4d7ef commit 600b2e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/storage/tsdb/caching_bucket.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func (cfg *MetadataCacheConfig) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix
9191
f.StringVar(&cfg.Backend, prefix+"backend", "", fmt.Sprintf("Backend for metadata cache, if not empty. Supported values: %s.", CacheBackendMemcached))
9292

9393
cfg.Memcached.RegisterFlagsWithPrefix(f, prefix+"memcached.")
94+
cfg.Redis.RegisterFlagsWithPrefix(f, prefix+"redis.")
9495

9596
f.DurationVar(&cfg.TenantsListTTL, prefix+"tenants-list-ttl", 15*time.Minute, "How long to cache list of tenants in the bucket.")
9697
f.DurationVar(&cfg.TenantBlocksListTTL, prefix+"tenant-blocks-list-ttl", 5*time.Minute, "How long to cache list of blocks for each tenant.")

pkg/storage/tsdb/redis_client_config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import (
44
"flag"
55
"time"
66

7-
"github.com/cortexproject/cortex/pkg/util/tls"
87
"github.com/pkg/errors"
98
"github.com/thanos-io/thanos/pkg/cacheutil"
9+
10+
"github.com/cortexproject/cortex/pkg/util/tls"
1011
)
1112

1213
type RedisClientConfig struct {

0 commit comments

Comments
 (0)