redis

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package redis is the redis instance builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisIns added in v0.1.7

func NewRedisIns() (redis.UniversalClient, error)

NewRedisIns creates a redis client.

Types

type RedisOptions

type RedisOptions struct {
	// Only one addr indicates that it will be a single node client,
	// otherwise it will be a cluster client.
	Addrs    []string
	Password string
	Database int
	Timeout  time.Duration
}

RedisOptions defines options for building a redis client.

Jump to

Keyboard shortcuts

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