allegro / allegro/bigcache

Reset() don't work

未關閉
#322 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Go
星號
8.2k
分支
614
平均合併
5 天 12 小時
30 天內合併 PR
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。