rediskit

package
v0.0.0-...-fe7ef4e Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 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
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(ctx context.Context, conf *RedisConfig) *RedisClient

func (*RedisClient) Close

func (c *RedisClient) Close() error

type RedisConfig

type RedisConfig struct {
	Addr     string `long:"addr" env:"ADDR" description:"the address of Redis" required:"true"`
	Password string `long:"password" env:"PASSWORD" description:"the password of Redis"`
	Database int    `long:"database" env:"DATABASE" description:"the database of Redis"`
}

Jump to

Keyboard shortcuts

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