Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct { Client *goredis.Client CTX context.Context Server string Password string DB int Prefix string }
Redis struct about the redis connection
func (*Redis) DelRedisKey ¶
DelRedisKey will delete a redis key
func (*Redis) GetAllRedisKeys ¶
func (e *Redis) GetAllRedisKeys(pattern string) *goredis.ScanIterator
GetAllRedisKeys get out all redis keys to a patter
func (*Redis) GetRedisKey ¶
GetRedisKey get out the data of a key
func (*Redis) SetRedisKey ¶
SetRedisKey store data in redis
Click to show internal directories.
Click to hide internal directories.