allegro / bigcache

Efficient cache for gigabytes of data written in Go.
http://allegro.tech/2016/03/writing-fast-cache-service-in-go.html
Apache License 2.0
7.47k stars 594 forks source link

Add ResetStats #331

Closed Hojun-Cho closed 2 years ago

Hojun-Cho commented 2 years ago

Hello, I saw the following issues #322 , #315 . So I wrote the code.

codecov-commenter commented 2 years ago

Codecov Report

Merging #331 (ff1c855) into master (0d61bd7) will increase coverage by 0.10%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #331      +/-   ##
==========================================
+ Coverage   90.07%   90.17%   +0.10%     
==========================================
  Files          15       15              
  Lines         776      784       +8     
==========================================
+ Hits          699      707       +8     
  Misses         65       65              
  Partials       12       12              
Impacted Files Coverage Δ
bigcache.go 96.74% <100.00%> (+0.10%) :arrow_up:
shard.go 92.01% <100.00%> (+0.12%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0d61bd7...ff1c855. Read the comment docs.