redis

package
v0.28.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DRV

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

func New

func New(ctx context.Context, keyPrefix string, config config.Redis) (DRV, error)

func (DRV) Close

func (drv DRV) Close()

func (DRV) Get

func (drv DRV) Get(k string, o any) error

func (DRV) GetTTL

func (drv DRV) GetTTL(k string) (time.Duration, error)

Returns time until the key expires, not the time it will be considered expired.

func (DRV) Set

func (drv DRV) Set(k string, v any, ttl ...time.Duration) error

Jump to

Keyboard shortcuts

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