This commit is contained in:
hoteas
2017-08-04 08:20:59 +00:00
commit 5e9e1418a2
22 changed files with 3315 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package hotime
//控制器
type Ctr map[string]func(*Context)
type Proj map[string]Ctr
type Router map[string]Proj
type CacheIns interface {
set(key string, value interface{}, time int64)
get(key string) interface{}
delete(key string)
Cache(key string, data ...interface{}) *Obj
}
//单条缓存数据
type cacheData struct {
time int64
data interface{}
}