redis

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelKey

func DelKey(key string, pool *redis.Pool) error

func GetInt

func GetInt(key string, pool *redis.Pool) (int, error)

func GetKeysByPattern

func GetKeysByPattern(pattern string, pool *redis.Pool) ([]string, error)

func GetObject

func GetObject(key string, obj interface{}, pool *redis.Pool) (bool, error)

func GetRedisPool

func GetRedisPool(address, password string, maxConnection int) *redis.Pool

func GetSetUint64

func GetSetUint64(key string, value uint64, pool *redis.Pool) (uint64, error)

func GetString

func GetString(key string, pool *redis.Pool) (string, error)

func GetUint64

func GetUint64(key string, pool *redis.Pool) (uint64, error)

func Incr

func Incr(key string, ttl int, pool *redis.Pool) error

func IncrBy

func IncrBy(key string, incrAmount uint64, ttl int, pool *redis.Pool) error

func Publish

func Publish(channel, message string, pool *redis.Pool) error

func SetInt

func SetInt(key string, value, ttl int, pool *redis.Pool) error

func SetKeyExpire

func SetKeyExpire(key string, ttl int, pool *redis.Pool) error

func SetObject

func SetObject(key string, obj interface{}, ttl int, pool *redis.Pool) error

func SetString

func SetString(key, value string, ttl int, pool *redis.Pool) error

func SetUint64

func SetUint64(key string, value uint64, ttl int, pool *redis.Pool) error

func Test

func Test(address, password string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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