chore: enable fullUserCache

This commit is contained in:
icey-yu
2024-09-05 17:22:05 +08:00
parent 7f8d26c36b
commit d9064867d5
12 changed files with 137 additions and 24 deletions
+6
View File
@@ -99,5 +99,11 @@ func (x *ExpirationLRU[K, V]) SetHas(key K, value V) bool {
return false
}
func (x *ExpirationLRU[K, V]) Set(key K, value V) {
x.lock.Lock()
defer x.lock.Unlock()
x.core.Add(key, &expirationLruItem[V]{value: value})
}
func (x *ExpirationLRU[K, V]) Stop() {
}