Documentation ¶
Index ¶
- func KeysWithLimit(client RedisClient, key string, maxScanCount int) (redisKeys []string, err error)
- func RedisAllKeys(client RedisClient, cache bool) ([]string, error)
- func RedisExecute(client RedisClient, command string) (interface{}, error)
- func RedisHelpMatch(text string, matchedFunc func(help RedisHelp)) bool
- func RedisKeys(client RedisClient, pattern string) ([]string, error)
- func RedisServerInfo(conf config.Config, client RedisClient) (string, error)
- type RedisClient
- type RedisHelp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeysWithLimit ¶
func KeysWithLimit(client RedisClient, key string, maxScanCount int) (redisKeys []string, err error)
func RedisAllKeys ¶
func RedisAllKeys(client RedisClient, cache bool) ([]string, error)
func RedisExecute ¶
func RedisExecute(client RedisClient, command string) (interface{}, error)
func RedisHelpMatch ¶
func RedisServerInfo ¶
func RedisServerInfo(conf config.Config, client RedisClient) (string, error)
Types ¶
type RedisClient ¶
type RedisClient interface { Keys(pattern string) *goRedis.StringSliceCmd Scan(cursor uint64, match string, count int64) *goRedis.ScanCmd Type(key string) *goRedis.StatusCmd TTL(key string) *goRedis.DurationCmd Get(key string) *goRedis.StringCmd LRange(key string, start, stop int64) *goRedis.StringSliceCmd SMembers(key string) *goRedis.StringSliceCmd ZRangeWithScores(key string, start, stop int64) *goRedis.ZSliceCmd HKeys(key string) *goRedis.StringSliceCmd HGet(key, field string) *goRedis.StringCmd Process(cmd goRedis.Cmder) error Do(args ...interface{}) *goRedis.Cmd Info(section ...string) *goRedis.StringCmd }
RedisClient is a redis client which wraps single or cluster client
func NewRedisClient ¶
func NewRedisClient(conf config.Config, outputChan chan core.OutputMessage) RedisClient
Click to show internal directories.
Click to hide internal directories.