cache

package
v0.0.0-...-bd015a2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(key string) bool

func GetString

func GetString(key string) string

func HashGet

func HashGet(key string, field string) string

func HashGetAll

func HashGetAll(key string) map[string]string

func HashGetObject

func HashGetObject(key string, result interface{})

func HashInc

func HashInc(key string, field string, by int) int

func HashRemove

func HashRemove(key string, fields ...string)

func HashSet

func HashSet(key string, fields ...interface{})

func Inc

func Inc(key string, by int, expires time.Duration) int

func Init

func Init()

func Remove

func Remove(keys ...string)

func RemoveSessionControl

func RemoveSessionControl(sessionKey string, sessionControlsKey string, controlID string)

func Send

func Send(channel string, message []byte)

func SetAdd

func SetAdd(key string, value string)

func SetGet

func SetGet(key string) []string

func SetRemove

func SetRemove(key string, value string) int

func SetSessionControl

func SetSessionControl(sessionKey string, sessionControlsKey string, controlID string, controlJSON string, maxSize int) bool

App specific methods =============================

func SetString

func SetString(key string, value string, expires time.Duration)

func SortedSetAdd

func SortedSetAdd(key string, value string, score int64)

func SortedSetPopRange

func SortedSetPopRange(key string, min int64, max int64) []string

func SortedSetRemove

func SortedSetRemove(key string, value string)

func Subscribe

func Subscribe(channel string) chan []byte

func Unsubscribe

func Unsubscribe(ch chan []byte)

Types

type Unlocker

type Unlocker interface {
	Unlock()
}

func Lock

func Lock(key string) Unlocker

Locks =============================

Jump to

Keyboard shortcuts

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