This commit is contained in:
richboo111
2023-04-25 09:46:26 +08:00
parent 69040cd1cf
commit a5f750ad67
21 changed files with 1552 additions and 32 deletions

View File

@@ -11,4 +11,14 @@ type ICacher interface {
Get(key string) interface{}
GetAs(key string, ptr interface{}) error
Keys(prefix string) ([]string, error)
FlushDB() error
Incr(key string) error
LRange(key string) (retVal []string)
Exists(keys ...string) (int64, error)
RPush(key string, value interface{}) error
Expire(key string, expiration time.Duration) error
LRem(key string, count int, value interface{}) error
LSet(key string, index int, value interface{}) error
ExpireResult(key string, expiration time.Duration) (bool, error)
}