feat: msg local cache

This commit is contained in:
withchao
2024-01-09 17:01:50 +08:00
parent 0248fbb47d
commit bbb5ef5ccc
9 changed files with 93 additions and 66 deletions
+1 -3
View File
@@ -33,9 +33,7 @@ type cache[V any] struct {
func (c *cache[V]) onEvict(key string, value V) {
for k := range c.link.Del(key) {
if key != k {
c.local.Del(k)
}
c.local.Del(k)
}
}