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 (
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
}