Documentation ¶ Index ¶ type RedisC func DefaultRedis(ctx context.Context, addr string, pwd ...string) *RedisC func InitRedis(ctx context.Context, addr, pwd string, DB int) *RedisC func (c *RedisC) Del(key string) *redis.IntCmd func (c *RedisC) Get(key string) *redis.StringCmd func (c *RedisC) Set(key string, value interface{}, expiration time.Duration) *redis.StatusCmd func (c *RedisC) SetEx(key string, value interface{}, expiration time.Duration) *redis.StatusCmd Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type RedisC ¶ type RedisC struct { // contains filtered or unexported fields } func DefaultRedis ¶ func DefaultRedis(ctx context.Context, addr string, pwd ...string) *RedisC func InitRedis ¶ func InitRedis(ctx context.Context, addr, pwd string, DB int) *RedisC func (*RedisC) Del ¶ func (c *RedisC) Del(key string) *redis.IntCmd func (*RedisC) Get ¶ func (c *RedisC) Get(key string) *redis.StringCmd func (*RedisC) Set ¶ func (c *RedisC) Set(key string, value interface{}, expiration time.Duration) *redis.StatusCmd func (*RedisC) SetEx ¶ func (c *RedisC) SetEx(key string, value interface{}, expiration time.Duration) *redis.StatusCmd Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.