redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Client *redis.Client
	// contains filtered or unexported fields
}

func Init

func Init(ctx context.Context, logger logging.Logger, address, port, password string, timeout time.Duration) (Cache, error)

func (Cache) Delete

func (c Cache) Delete(key string) (err error)

func (Cache) DeleteAll

func (c Cache) DeleteAll() (err error)

func (Cache) Get

func (c Cache) Get(key string) (value string, err error)

func (Cache) Set

func (c Cache) Set(key string, value interface{}) (err error)

func (Cache) Shutdown

func (cache Cache) Shutdown() (err error)

Jump to

Keyboard shortcuts

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