feat: local cache

This commit is contained in:
withchao
2024-01-15 15:53:40 +08:00
parent abbb701192
commit c9193302a8
3 changed files with 45 additions and 19 deletions
-9
View File
@@ -107,15 +107,6 @@ func WithDeleteKeyBefore(fn func(ctx context.Context, key ...string)) Option {
}
}
func WithDeleteLocal(fn func(fn func(key ...string))) Option {
if fn == nil {
panic("fn should not be nil")
}
return func(o *option) {
o.delCh = fn
}
}
type emptyTarget struct{}
func (e emptyTarget) IncrGetHit() {}