cache

package
v0.0.147 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 11 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) (et.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, def string) (string, error)

* * *

func GetCtx

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

func GetItem added in v0.0.95

func GetItem(key string) (et.Item, error)

* * Item *

func GetItems added in v0.0.95

func GetItems(key string) (et.Items, error)

* * Items *

func GetJson added in v0.0.118

func GetJson(key string) (et.Json, error)

* * Json *

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

func SetD(key, val string) error

func SetItem added in v0.0.95

func SetItem(key string, val et.Item, second time.Duration) (et.Item, error)

func SetItemD added in v0.0.95

func SetItemD(key string, val et.Item) (et.Item, error)

func SetItemM added in v0.0.95

func SetItemM(key string, val et.Item) (et.Item, error)

func SetItemW added in v0.0.95

func SetItemW(key string, val et.Item) (et.Item, error)

func SetItemY added in v0.0.95

func SetItemY(key string, val et.Item) (et.Item, error)

func SetItems added in v0.0.95

func SetItems(key string, val et.Items, second time.Duration) (et.Items, error)

func SetItemsD added in v0.0.118

func SetItemsD(key string, val et.Items) (et.Items, error)

func SetItemsM added in v0.0.118

func SetItemsM(key string, val et.Items) (et.Items, error)

func SetItemsW added in v0.0.118

func SetItemsW(key string, val et.Items) (et.Items, error)

func SetItemsY added in v0.0.118

func SetItemsY(key string, val et.Items) (et.Items, error)

func SetJson added in v0.0.118

func SetJson(key string, val et.Json, second time.Duration) (et.Json, error)

func SetJsonD added in v0.0.118

func SetJsonD(key string, val et.Json) (et.Json, error)

func SetJsonM added in v0.0.118

func SetJsonM(key string, val et.Json) (et.Json, error)

func SetJsonW added in v0.0.118

func SetJsonW(key string, val et.Json) (et.Json, error)

func SetJsonY added in v0.0.118

func SetJsonY(key string, val et.Json) (et.Json, error)

func SetM added in v0.0.120

func SetM(key, val string) error

func SetVerify

func SetVerify(device, key, val string) error

func SetW added in v0.0.120

func SetW(key, val string) error

func SetY added in v0.0.120

func SetY(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