libredis

package module
v0.0.0-...-a6929b2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

libredis

redis lib base on go-redis/redis, simple and cluster mode are supported

Documentation

Overview

Package libredis

Package libredis

Index

Constants

View Source
const (
	REDIS_DEPLOY_KIND_DOUBLE_MASTER    = "-1"
	REDIS_DEPLOY_KIND_SINGLE           = "1"
	REDIS_DEPLOY_KIND_SENTINEL         = "2"
	REDIS_DEPLOY_KIND_OFFICIAL_CLUSTER = "3"

	REDIS_KIND_SINGLE           = 1
	REDIS_KIND_SENTINEL         = 2
	REDIS_KIND_OFFICIAL_CLUSTER = 3
)
View Source
const REDIS_NIL_STR = "redis: nil"

Variables

This section is empty.

Functions

func NewRedisGoV6

func NewRedisGoV6(address, password string) *redis.Client

func NewRedisGoV6Cluster

func NewRedisGoV6Cluster(address, password string) *redis.ClusterClient

func NewRedisGoV6Sentinel

func NewRedisGoV6Sentinel(addrs, password, masterName string, opts ...ConfigOption) *redis.Client

Types

type ConfigOption

type ConfigOption func(fo *redis.FailoverOptions)

func DBIndex

func DBIndex(dbIndex int) ConfigOption

DBIndex implements ...

func MaxRetries

func MaxRetries(count int) ConfigOption

MaxRetries implements ...

type RedisGopher

type RedisGopher redis.Cmdable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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