redis

package
v5.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func C

func C() rueidis.Client

C returns a pointer the singleton instance of rueidis.Client

func NewRedisClient

func NewRedisClient(urls []string, password string, resp3, cache bool) (rueidis.Client, error)

NewRedisClient returns a pointer to a new redis.Client instance

func ReplaceGlobals

func ReplaceGlobals(redis rueidis.Client) func()

ReplaceGlobals replaces the global Logger and SugaredLogger, and returns a function to restore the original values. It's safe for concurrent use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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