mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
fix typo
This commit is contained in:
parent
8c89438499
commit
4938331709
1 changed files with 2 additions and 2 deletions
|
@ -679,8 +679,8 @@ Internally, the `NewCache` function can address `max-items` and `item-size` keys
|
||||||
```go
|
```go
|
||||||
func NewCache(v *Viper) *Cache {
|
func NewCache(v *Viper) *Cache {
|
||||||
return &Cache{
|
return &Cache{
|
||||||
MaxItems: c.GetInt("max-items"),
|
MaxItems: v.GetInt("max-items"),
|
||||||
ItemSize: c.GetInt("item-size"),
|
ItemSize: v.GetInt("item-size"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue