update pkg/lru/define.go.

This commit is contained in:
K-on 2021-10-11 11:19:11 +00:00 committed by Gitee
parent 5459c7710c
commit d2866256dd
1 changed files with 2 additions and 0 deletions

View File

@ -28,10 +28,12 @@ const (
const ( const (
defaultWaitTime = 20 * time.Minute defaultWaitTime = 20 * time.Minute
) )
type CacheInterface interface { type CacheInterface interface {
Del() error Del() error
Get(key *proto.BaseKey) (structure.KeyBaseInterface, bool) Get(key *proto.BaseKey) (structure.KeyBaseInterface, bool)
Add(key *proto.BaseKey, val structure.KeyBaseInterface) Add(key *proto.BaseKey, val structure.KeyBaseInterface)
UpdateLruSize(length structure.UpdateLength) UpdateLruSize(length structure.UpdateLength)
DelByKey(key *proto.BaseKey) error DelByKey(key *proto.BaseKey) error
DelToClearSize() error
} }