Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { SaveObj(i CacheObj, exp time.Duration) error GetObj(key string, i CacheObj) error GetObjs(keys []string, d CacheObj) (objs []CacheObj, err error) SaveObjHash(i CacheMapObj, exp time.Duration) error GetObjHash(key string, i CacheMapObj) error }
func NewRedisCache ¶
func NewRedisCache(clt conn.RedisClient) Cache
type CacheMapObj ¶
type ComCacheObj ¶
type ComCacheObj struct { N string // contains filtered or unexported fields }
func (*ComCacheObj) DecodePipe ¶
func (t *ComCacheObj) DecodePipe(obj CacheObj) error
func (*ComCacheObj) GetError ¶
func (s *ComCacheObj) GetError() error
func (*ComCacheObj) GetStringCmd ¶
func (s *ComCacheObj) GetStringCmd() (*redis.StringCmd, error)
func (*ComCacheObj) HasError ¶
func (s *ComCacheObj) HasError() bool
func (*ComCacheObj) SetStringCmd ¶
func (s *ComCacheObj) SetStringCmd(sc *redis.StringCmd)
Click to show internal directories.
Click to hide internal directories.