cache

package
v0.0.83 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllCache

func AllCache(search string, page, rows int) (e.List, error)

func Close

func Close() error

func Del

func Del(key string) (int64, error)

func DelCtx

func DelCtx(ctx context.Context, key string) (int64, error)

func DelVerify

func DelVerify(device string, key string) (int64, error)

func Empty

func Empty() error

func Get

func Get(key string) (string, error)

func GetCtx

func GetCtx(ctx context.Context, key string) (string, error)

func GetVerify

func GetVerify(device string, key string) (string, error)

func HDel

func HDel(key, atr string) error

func HDelCtx

func HDelCtx(ctx context.Context, key, atr string) error

func HGet

func HGet(key string) (map[string]string, error)

func HGetAtrib added in v0.0.77

func HGetAtrib(key, atr string) (string, error)

func HGetCtx

func HGetCtx(ctx context.Context, key string) (map[string]string, error)

func HSet

func HSet(key string, val map[string]string) error

func HSetAtrib added in v0.0.77

func HSetAtrib(key, atr, val string) error

func HSetCtx

func HSetCtx(ctx context.Context, key string, val map[string]string) error

func More added in v0.0.44

func More(key string, second time.Duration) int

func Pub

func Pub(channel string, message interface{}) error

func PubCtx

func PubCtx(ctx context.Context, channel string, message interface{}) error

func Set

func Set(key, val string, second time.Duration) error

func SetCtx

func SetCtx(ctx context.Context, key, val string, second time.Duration) error

func SetVerify

func SetVerify(device, key, val string) error

func Sub

func Sub(channel string, f func(interface{}))

func SubCtx

func SubCtx(ctx context.Context, channel string, f func(interface{}))

Types

type Conn

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

func Load

func Load() (*Conn, error)

Jump to

Keyboard shortcuts

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