提交
This commit is contained in:
8
internal/cache/cacheable.go
vendored
Normal file
8
internal/cache/cacheable.go
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
package cache
|
||||
|
||||
type Cacheable interface {
|
||||
Set(key string, value interface{}, ttl int) error
|
||||
Get(key string) (interface{}, error)
|
||||
Exist(key string) (bool, error)
|
||||
Del(key string) error
|
||||
}
|
||||
Reference in New Issue
Block a user