Files
hotime/cache/type.go
T

19 lines
319 B
Go
Raw Normal View History

2021-05-24 07:27:41 +08:00
package cache
import (
2022-03-13 01:12:29 +08:00
. "code.hoteas.com/golang/hotime/common"
2021-05-24 07:27:41 +08:00
)
type CacheIns interface {
Cache(key string, data ...interface{}) *Obj
CachesGet(keys []string) Map
CachesSet(data Map, timeout ...int64)
CachesDelete(keys []string)
2021-05-24 07:27:41 +08:00
}
// 单条缓存数据
2021-05-24 07:27:41 +08:00
type cacheData struct {
time int64
data interface{}
}