Versions in this module Expand all Collapse all v1 v1.0.0 Sep 24, 2023 Changes in this version + type Redis struct + func GetRedis(name *string, logger *log.Logger) *Redis + func (rd *Redis) Decr(key string) int64 + func (rd *Redis) DecrBy(key string, increment int64) int64 + func (rd *Redis) Del(keys ...string) int + func (rd *Redis) Do(cmd string, values ...interface{}) string + func (rd *Redis) Exists(key string) bool + func (rd *Redis) Expire(key string, seconds int) bool + func (rd *Redis) ExpireAt(key string, time int) bool + func (rd *Redis) Get(key string) interface{} + func (rd *Redis) GetEX(key string, seconds int) interface{} + func (rd *Redis) GetSet(key string, value interface{}) interface{} + func (rd *Redis) HDecr(key, field string) int64 + func (rd *Redis) HDecrBy(key, field string, increment int64) int64 + func (rd *Redis) HDel(key string, fields ...string) int + func (rd *Redis) HExists(key, field string) bool + func (rd *Redis) HGet(key, field string) interface{} + func (rd *Redis) HGetAll(key string) map[string]interface{} + func (rd *Redis) HIncr(key, field string) int64 + func (rd *Redis) HIncrBy(key, field string, increment int64) int64 + func (rd *Redis) HKeys(patten string) []string + func (rd *Redis) HLen(key string) int + func (rd *Redis) HMGet(key string, fields ...string) []interface{} + func (rd *Redis) HMSet(key string, fieldAndValues ...interface{}) bool + func (rd *Redis) HSet(key, field string, value interface{}) bool + func (rd *Redis) HSetNX(key, field string, value interface{}) bool + func (rd *Redis) Incr(key string) int64 + func (rd *Redis) IncrBy(key string, increment int64) int64 + func (rd *Redis) Keys(patten string) []string + func (rd *Redis) LLen(key string) int + func (rd *Redis) LPop(key string) interface{} + func (rd *Redis) LPush(key string, values ...string) int + func (rd *Redis) LRange(key string, start, stop int) []interface{} + func (rd *Redis) MGet(keys ...string) []interface{} + func (rd *Redis) MSet(keyAndValues ...interface{}) bool + func (rd *Redis) Publish(channel, data string) bool + func (rd *Redis) RPop(key string) interface{} + func (rd *Redis) RPush(key string, values ...string) int + func (rd *Redis) Set(key string, value interface{}) bool + func (rd *Redis) SetEX(key string, seconds int, value interface{}) bool + func (rd *Redis) SetNX(key string, value interface{}) bool