redis

package module
v3.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher struct {
	// contains filtered or unexported fields
}

func NewCacher

func NewCacher(rdb redis.UniversalClient, opts ...Option) *Cacher

func (*Cacher) Get

func (c *Cacher) Get(ctx context.Context, key string) ([]float64, error)

func (*Cacher) Set

func (c *Cacher) Set(ctx context.Context, key string, value []float64, expire time.Duration) error

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithCodec

func WithCodec(codec codec.Codec) Option

func WithPrefix

func WithPrefix(prefix string) Option

Jump to

Keyboard shortcuts

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