redis

package
v0.11.27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(cache *Cache) error

Types

type Cache

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

func New

func New(address string, userName string, password string, db int, namespace string) (*Cache, error)

func (*Cache) Clear

func (cache *Cache) Clear() error

func (*Cache) Delete

func (cache *Cache) Delete(key string) error

func (*Cache) Get

func (cache *Cache) Get(key string) (string, error)

func (*Cache) GetAll

func (cache *Cache) GetAll() (map[string]string, error)

func (*Cache) GetMulti

func (cache *Cache) GetMulti(keys []string) (map[string]string, error)

func (*Cache) Set

func (cache *Cache) Set(key string, value string, expireSec int64) error

Jump to

Keyboard shortcuts

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