xredis

package
v0.0.0-...-6ffc9e3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedisDestroy

func RedisDestroy()

销毁redis pool相关资源

func RedisDo

func RedisDo(cmd string, args ...interface{}) (err error)

func RedisGet

func RedisGet(key string) (value string, err error)

func RedisHGet

func RedisHGet(key, field string) (value string, err error)

HGET key field 返回 key 指定的哈希集中该字段所关联的值

func RedisInit

func RedisInit(server, password string)

初始化

func RedisLLen

func RedisLLen(key string) (value int, err error)

func RedisLPop

func RedisLPop(key string) (value string, err error)

LPOP key 从队列的左边出队一个元素

func RedisLPush

func RedisLPush(key, value string) (err error)

func RedisPoolInit

func RedisPoolInit(server, password string) *redis.Pool

获取一个redis pool

func RedisRPush

func RedisRPush(key, value string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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