Documentation ¶ Index ¶ type Rcache func NewRcache(rdb *redis.Client) *Rcache func NewRcacheWithRsync(rdb *redis.Client, rsync *redsync.Redsync) *Rcache func (rc *Rcache) RandExpireDuration(t time.Duration, maxRand time.Duration) time.Duration Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Rcache ¶ type Rcache struct { *redis.Client *redsync.Redsync } func NewRcache ¶ func NewRcache(rdb *redis.Client) *Rcache func NewRcacheWithRsync ¶ func NewRcacheWithRsync(rdb *redis.Client, rsync *redsync.Redsync) *Rcache func (*Rcache) RandExpireDuration ¶ func (rc *Rcache) RandExpireDuration(t time.Duration, maxRand time.Duration) time.Duration Source Files ¶ View all Source files rcache.go Click to show internal directories. Click to hide internal directories.