allegro / allegro/bigcache

Check if cache empty?

オープン
#281 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
8.2k
フォーク
614
平均マージ
5日 12時間
マージ済み PR(30日)
1

説明

Is there are way to detect when a bigcache instance is completely empty? I have a use case where I store about a dozen cache items which are read in from a file bundled with my application. After the invalidation interval elapses, I have an OnRemove() handler set up to listen for the evictions. I want to rehydrate the cache from the original file I mentioned earlier, but I don't want to do that until all the cache items have been removed. Any thoughts or perhaps suggestions on a different strategy?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。