forked from p53841790/wheat-cache
update pkg/lru/define.go.
This commit is contained in:
parent
5459c7710c
commit
d2866256dd
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue