This commit is contained in:
Meysam GanJi
2020-10-12 09:45:20 +02:00
committed by Márk Sági-Kazár
parent 8c89438499
commit 4938331709
+2 -2
View File
@@ -679,8 +679,8 @@ Internally, the `NewCache` function can address `max-items` and `item-size` keys
```go
func NewCache(v *Viper) *Cache {
return &Cache{
MaxItems: c.GetInt("max-items"),
ItemSize: c.GetInt("item-size"),
MaxItems: v.GetInt("max-items"),
ItemSize: v.GetInt("item-size"),
}
}
```