Files
jx-callback/business/jxutils/cache/cache.go
2018-09-04 21:23:51 +08:00

14 lines
242 B
Go

package cache
import (
"time"
)
type ICacher interface {
FlushAll() error
Set(key string, value interface{}, expiration time.Duration) error
Del(key string) error
Get(key string) interface{}
GetAs(key string, ptr interface{}) error
}