2021-05-23 23:27:41 +00:00
|
|
|
package cache
|
|
|
|
|
|
|
|
import (
|
|
|
|
. "../common"
|
|
|
|
)
|
2021-05-23 21:47:56 +00:00
|
|
|
|
|
|
|
type HoTimeCache struct {
|
|
|
|
|
|
|
|
//set(key string, value interface{}, time int64)
|
|
|
|
//get(key string) interface{}
|
|
|
|
//delete(key string)
|
2021-05-25 12:27:24 +00:00
|
|
|
Error
|
2021-05-23 21:47:56 +00:00
|
|
|
dbCache CacheIns
|
|
|
|
redisCache CacheIns
|
|
|
|
memoryCache CacheIns
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *HoTimeCache) Session(key string, data ...interface{}) *Obj {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *HoTimeCache) Db(key string, data ...interface{}) *Obj {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *HoTimeCache) Cache(key string, data ...interface{}) *Obj {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *HoTimeCache) getIndex() []CacheIns {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|