hotime/vendor/github.com/silenceper/wechat/v2/cache/cache.go
2022-05-24 13:49:25 +08:00

12 lines
218 B
Go

package cache
import "time"
// Cache interface
type Cache interface {
Get(key string) interface{}
Set(key string, val interface{}, timeout time.Duration) error
IsExist(key string) bool
Delete(key string) error
}