redis

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 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 added in v0.19.0

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 added in v0.19.0

func (drv DRV) Close()

func (DRV) Get added in v0.19.0

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

func (DRV) GetTTL added in v0.19.0

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 added in v0.19.0

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