Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct { *redis.Client KeyPrefix string // contains filtered or unexported fields }
RedisClient represents a redis client.
func New ¶
func New( url string, poolSize, minIdleConns int, keyPrefix string, logger *logrus.Logger) *RedisClient
New returns a redis client.
func (*RedisClient) CheckHealth ¶ added in v0.8.4
func (rs *RedisClient) CheckHealth() bool
CheckHealth checks if the job queue is alive.
func (*RedisClient) Close ¶
func (rs *RedisClient) Close() error
Close terminates any storage connections gracefully.
func (*RedisClient) GetRedisPrefixedKey ¶
func (rs *RedisClient) GetRedisPrefixedKey(key string) string
Click to show internal directories.
Click to hide internal directories.