redis

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type St

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

func New

func New(lg logger.WarnAndError, url, psw string, db int, prefix string) *St

func (*St) Del

func (c *St) Del(key string) error

func (*St) Get

func (c *St) Get(key string) ([]byte, bool, error)

func (*St) GetJsonObj

func (c *St) GetJsonObj(key string, dst any) (bool, error)

func (*St) Keys

func (c *St) Keys(pattern string) []string

func (*St) Set

func (c *St) Set(key string, value []byte, expiration time.Duration) error

func (*St) SetJsonObj

func (c *St) SetJsonObj(key string, value any, expiration time.Duration) error

Jump to

Keyboard shortcuts

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