redis

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func C

func C() *redis.Client

C returns a pointer the singleton instance of statsd.Client

func NewDefaultRedisClient

func NewDefaultRedisClient() *redis.Client

NewDefaultRedisClient returns a pointer to a new redis.Client instance with default configuration

func NewRedisClient

func NewRedisClient(url string, port int, password string, db int) (*redis.Client, error)

NewRedisClient returns a pointer to a new redis.Client instance

func ReplaceGlobals

func ReplaceGlobals(redis *redis.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