redis

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(redisCli *redis.Client, opts *Options) (thing.CacheClient, error)

NewClient creates a new Redis cache client wrapper. If client is not nil, it will be used directly. Otherwise, opts will be used to create a new client.

Types

type Options

type Options struct {
	Addr     string
	Password string
	DB       int
}

Options holds configuration for the Redis client.

Jump to

Keyboard shortcuts

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