redis

package
v2.0.0-...-5918b2a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decr

func Decr(key string) error

func GetFloat32

func GetFloat32(key string) (float32, error)

func GetFloat64

func GetFloat64(key string) (float64, error)

func GetInt

func GetInt(key string) (int, error)

func GetInt64

func GetInt64(key string) (int64, error)

func GetObj

func GetObj(key string, value interface{}) error

func GetString

func GetString(key string) string

func HealthCheck

func HealthCheck() error

func Incr

func Incr(key string) error

func Init

func Init(app *iris.Application)

func Lock

func Lock(ctx context.Context, key string, ttl time.Duration) *redislock.Lock

func LockMax

func LockMax(ctx context.Context, key string) *redislock.Lock

func PutObj

func PutObj(key string, val interface{}, expiration time.Duration)

func PutObjPermanently

func PutObjPermanently(key string, val interface{})

func Set

func Set(key string, value interface{}, expiration time.Duration)

func SetPermanently

func SetPermanently(key string, value interface{})

func TryLock

func TryLock(ctx context.Context, key string, tryTime, ttl time.Duration) *redislock.Lock

func UnLock

func UnLock(ctx context.Context, lock *redislock.Lock)

Types

This section is empty.

Jump to

Keyboard shortcuts

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