10 lines
193 B
Go
10 lines
193 B
Go
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)
|
|
}
|