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