- 修复了缓存相关文件中注释开头缺少空格的问题 - 在 db/hotimedb.go 中为 vcond 数组添加了 "DISTINCT" 选项 - 注释掉了 session.go 中的并发控制代码以简化实现
21 lines
365 B
Go
21 lines
365 B
Go
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
|
|
}
|
|
|
|
// 单条缓存数据
|
|
type cacheData struct {
|
|
time int64
|
|
data interface{}
|
|
}
|