Skip to content

Commit

Permalink
fix: config name for minUseCount
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Oct 25, 2022
1 parent 2166bd2 commit e81c1de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func Create(cacheCfg config.CacheCfg) ResponseCache {
switch cacheCfg.Type {
case "redis":
monitoring.Log().Info("Creating redis cache", zap.Strings("addr", cacheCfg.Address))
return NewRedis(cacheCfg.Address, cacheCfg.ClientConfig, CacheCfg{MaxItemSize: cacheCfg.MaxCacheItemSize})
return NewRedis(cacheCfg.Address, cacheCfg.ClientConfig, CacheCfg{MaxItemSize: cacheCfg.MaxCacheItemSize, MinUseCount: cacheCfg.MinUseCount})
case "redis-cluster":
monitoring.Log().Info("Creating redis-cluster cache", zap.Strings("addr", cacheCfg.Address))
return NewRedisCluster(cacheCfg.Address, cacheCfg.ClientConfig, CacheCfg{
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ type CacheCfg struct {
Address []string `yaml:"address"`
MaxCacheItemSize int64 `yaml:"maxCacheItemSizeMB"`
CacheSize int64 `yaml:"cacheSize"`
MinUseCount uint64 `yaml:"MinUseCount"`
MinUseCount uint64 `yaml:"minUseCount"`
ClientConfig map[string]string `yaml:"clientConfig"`
}

Expand Down

0 comments on commit e81c1de

Please # to comment.