Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
SaveObj(i dao.CacheObj, exp time.Duration) error
GetObj(key string, i dao.CacheObj) error
GetObjs(keys []string, d dao.CacheObj) (objs []dao.CacheObj, err error)
SaveObjHash(i dao.CacheMapObj, exp time.Duration) error
GetObjHash(key string, i dao.CacheMapObj) error
}
func NewRedisCache ¶
func NewRedisCache(clt db.RedisClient) Cache
type SimpleCache ¶
type SimpleCache interface {
Save() (string, error)
Get() ([]byte, error)
SetData(d SimpleCacheData)
}
func NewCache ¶
func NewCache(data SimpleCacheData, db db.RedisClient) SimpleCache
Click to show internal directories.
Click to hide internal directories.