package cache import ( . "code.hoteas.com/golang/hotime/common" ) type CacheIns interface { //set(key string, value interface{}, time int64) //get(key string) interface{} //delete(key string) GetError() *Error SetError(err *Error) Cache(key string, data ...interface{}) *Obj // 批量操作 CachesGet(keys []string) Map // 批量获取 CachesSet(data Map, timeout ...int64) // 批量设置 CachesDelete(keys []string) // 批量删除 } // 单条缓存数据 type cacheData struct { time int64 data interface{} }