redis

package
v0.0.0-...-4e81a15 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	Redis *redis.Pool
}

Redis redis

func (*Redis) RedisDelete

func (r *Redis) RedisDelete(key string) error

RedisDelete 运行Redis的DELETE指令

func (*Redis) RedisExists

func (r *Redis) RedisExists(key string) (bool, error)

RedisExists 运行Redis的EXISTS指令

func (*Redis) RedisGet

func (r *Redis) RedisGet(key string) ([]byte, error)

RedisGet 运行Redis的GET指令

func (*Redis) RedisGetKeys

func (r *Redis) RedisGetKeys(pattern string) ([]string, error)

RedisGetKeys 运行Redis的SCAN-MATCH指令

func (*Redis) RedisIncr

func (r *Redis) RedisIncr(counterKey string) (int, error)

RedisIncr 运行Redis的INCR指令

func (*Redis) RedisPing

func (r *Redis) RedisPing() error

RedisPing 运行Redis的PING指令

func (*Redis) RedisSet

func (r *Redis) RedisSet(key string, value []byte) error

RedisSet 运行Redis的SET指令

func (*Redis) RedisSetEx

func (r *Redis) RedisSetEx(key string, exp int, value []byte) error

RedisSetEx 运行Redis的SET指令,同时设置过期时间

Jump to

Keyboard shortcuts

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