Merge branch 'fix-err' of github.com:icey-yu/open-im-server into fix-err

This commit is contained in:
Monet Lee
2024-09-05 18:56:48 +08:00
12 changed files with 165 additions and 30 deletions
+1
View File
@@ -20,6 +20,7 @@ type EvictCallback[K comparable, V any] simplelru.EvictCallback[K, V]
type LRU[K comparable, V any] interface {
Get(key K, fetch func() (V, error)) (V, error)
Set(key K, value V)
GetBatch(key []K, fetchBatch func([]K) (map[string]V, error)) (map[string]V, error)
SetHas(key K, value V) bool
Del(key K) bool