redis

package
v0.0.0-...-eecab09 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Redis)

Option -.

func MaxRetries

func MaxRetries(attempts int) Option

MaxRetries -.

func RetryDelay

func RetryDelay(t time.Duration) Option

RetryDelay -.

type Redis

type Redis struct {
	Client *redis.Client
	// contains filtered or unexported fields
}

Redis -.

func New

func New(dsn string, opts ...Option) (*Redis, error)

New -.

func (*Redis) Close

func (r *Redis) Close()

Close -.

Jump to

Keyboard shortcuts

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