redis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cli *redis.Client

Cli simple client

View Source
var Cluster *redis.ClusterClient

Cluster client

Ctx context

Functions

func Close

func Close()

Close redis

func CloseCluster

func CloseCluster()

CloseCluster redis

func Connect

func Connect(addr string, password string, db int)

Connect to redis

func ConnectCluster

func ConnectCluster(addrs []string, poolSize int, password string)

ConnectCluster to redis

func Get

func Get(key string) (string, error)

Get key value to redis

func Set

func Set(key string, value interface{}) error

Set key value to redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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