Documentation ¶
Overview ¶
Package gtbox_redis en: Redis handle, zh-cn: Redis封装处理
Index ¶
- func SetupRedisConnection(redisCfg RedisConfig, prefixStr string) (success bool)
- type GTRedis
- func (gtr *GTRedis) Del(key string) error
- func (gtr *GTRedis) Get(key string) (string, error)
- func (gtr *GTRedis) HDel(key string, subKey string) error
- func (gtr *GTRedis) HExists(key string, subKey string) bool
- func (gtr *GTRedis) HGet(key string, subKey string) (string, error)
- func (gtr *GTRedis) HGetAll(key string) (map[string]string, error)
- func (gtr *GTRedis) HKeys(key string) ([]string, error)
- func (gtr *GTRedis) HSet(key string, subKey string, jsonByte []byte) error
- func (gtr *GTRedis) Keys(key string) ([]string, error)
- func (gtr *GTRedis) SAdd(key1 string, values ...interface{}) error
- func (gtr *GTRedis) SMembers(key1 string, values ...interface{}) []string
- func (gtr *GTRedis) Scard(key1 string, key2 string) (Cnt int64)
- func (gtr *GTRedis) Set(key string, value string) error
- type RedisConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRedisConnection ¶
func SetupRedisConnection(redisCfg RedisConfig, prefixStr string) (success bool)
SetupRedisConnection 初始化Redis连接
Types ¶
type GTRedis ¶ added in v0.1.70
type GTRedis struct {
// contains filtered or unexported fields
}
var (
OwnerRedis *GTRedis
)
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.