redis

package
v0.0.0-...-9dae7fe Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address  string `toml:"address"`
	Password string `toml:"password"`
}

Config is ...

type Handler

type Handler interface {
	Close() error
	Ping() error
	Set(key string, value any, expiration time.Duration) error
	Get(key string) *redis.StringCmd
	Delete(key string) (int64, error)

	Client() *redis.Client
}

Handler is ...

var Conn Handler

func New

func New(ctx context.Context, addr, password string) Handler

New creates a new Handler backed by Redis using the given options.

Jump to

Keyboard shortcuts

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