feat: cache add single-flight and timing-wheel.

This commit is contained in:
Gordon
2024-01-12 13:27:54 +08:00
parent 006e4a1e93
commit 1f1ab65375
13 changed files with 316 additions and 184 deletions
+5
View File
@@ -0,0 +1,5 @@
package localcache
import "github.com/hashicorp/golang-lru/v2/simplelru"
type EvictCallback[K comparable, V any] simplelru.EvictCallback[K, V]