Reset() don't work
- 主要言語
- Go
- スター
- 8.2k
- フォーク
- 614
- 平均マージ
- 5日 12時間
- マージ済み PR(30日)
- 1
説明
**What is the issue you are having?**
Reset shards no longer works
**What is BigCache doing that it shouldn't?**
Empty the shards.
Using stats method i can see the how many items are in cache
```
cache, initErr := bigcache.NewBigCache(config)
cache.Stats()
Output: {"hits":1222,"misses":2,"delete_hits":0,"delete_misses":0,"collisions":0}
```
but when i run the method Reset to flush the shards, they are not flushed / empty, , in previously versions this method works correctly.
```
cache, initErr := bigcache.NewBigCache(config)
cache.Reset()
```
After i run the Reset() the stats are se same
`Output: {"hits":1222,"misses":2,"delete_hits":0,"delete_misses":0,"collisions":0}`
**Environment:**
- Version (git sha or release): v3@v3.0.2
- OS (e.g. from `/etc/os-release` or winver.exe): Debian GNU/Linux 10 (buster)
- go version: 1.18.3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。