diff --git a/pkg/lru/define.go b/pkg/lru/define.go index 5198552..6b8dd2b 100644 --- a/pkg/lru/define.go +++ b/pkg/lru/define.go @@ -28,10 +28,12 @@ const ( const ( defaultWaitTime = 20 * time.Minute ) + type CacheInterface interface { Del() error Get(key *proto.BaseKey) (structure.KeyBaseInterface, bool) Add(key *proto.BaseKey, val structure.KeyBaseInterface) UpdateLruSize(length structure.UpdateLength) DelByKey(key *proto.BaseKey) error + DelToClearSize() error }