diff --git a/pkg/lru/define.go b/pkg/lru/define.go index 98e82e2..4d05af5 100644 --- a/pkg/lru/define.go +++ b/pkg/lru/define.go @@ -1,6 +1,7 @@ package lru import ( + "gitee.com/timedb/wheatCache/pkg/proto" "gitee.com/timedb/wheatCache/pkg/structure" "sync" ) @@ -26,7 +27,8 @@ const ( type CacheInterface interface { Del() error - Get(key string) (structure.KeyBaseInterface, bool) - Add(key string, val structure.KeyBaseInterface) + Get(key *proto.BaseKey) (structure.KeyBaseInterface, bool) + Add(key *proto.BaseKey, val structure.KeyBaseInterface) UpdateLruSize(length structure.UpdateLength) -} \ No newline at end of file + DelByKey(key *proto.BaseKey) error +}