Feat: add models/cache/config
This commit is contained in:
9
pkg/cache/main.go
vendored
Normal file
9
pkg/cache/main.go
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
package cache
|
||||
|
||||
type Cache interface {
|
||||
Get(key string) ([]byte, error)
|
||||
Set(key string, value []byte)
|
||||
Expire(key string, exp int64)
|
||||
GetAll() (resp map[string][]byte)
|
||||
RemoveKey(key string)
|
||||
}
|
Reference in New Issue
Block a user