cache

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisC *redis.Client

RedisC is the *redis.Client

Functions

func NewClusterClient added in v1.4.5

func NewClusterClient(clusterGroup []string) (*redis.ClusterClient, error)

NewClusterClient 集群模式

func NewClusterClientOption added in v1.4.5

func NewClusterClientOption(option *redis.ClusterOptions) (*redis.ClusterClient, error)

NewClusterClientOption 集群模式

func NewSentinelClient added in v1.4.5

func NewSentinelClient(sentinelGroup []string) (*redis.Client, error)

NewSentinelClient 哨兵模式

func NewSentinelClientOption added in v1.4.5

func NewSentinelClientOption(option *redis.FailoverOptions) (*redis.Client, error)

NewSentinelClientOption 哨兵模式

func OpenRedis

func OpenRedis(rURL string) (*redis.Client, error)

OpenRedis redis://localhost:6379/?pwd=&db=

Types

This section is empty.

Jump to

Keyboard shortcuts

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