Documentation
¶
Index ¶
Constants ¶
View Source
const NilReply = aredis.RedisNil
NilReply represent Redis nil reply, .e.g. when key does not exist.
Variables ¶
This section is empty.
Functions ¶
func IsCacheErr ¶
IsCacheErr will ignore redis.nil for error handler
Types ¶
type RedisCache ¶
RedisCache abstraction used to store a redis connection
func NewAlaudaRedis ¶
NewAlaudaRedis construtor based on alauda redis client
func NewRedis ¶
func NewRedis(opts RedisOpts, writeOpts RedisOpts) (*RedisCache, error)
NewRedis constructor method for a new Redis cache
func (*RedisCache) Diagnose ¶
func (r *RedisCache) Diagnose() diagnose.ComponentReport
Diagnose start diagnose check http://confluence.alaudatech.com/pages/viewpage.action?pageId=14123161
func (*RedisCache) Reader ¶
func (r *RedisCache) Reader() aredis.Commander
Reader returns a read commander
func (*RedisCache) Writer ¶
func (r *RedisCache) Writer() aredis.Commander
Writer returns a write commander
Click to show internal directories.
Click to hide internal directories.