redis

package
v0.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2022 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL