redis

package
v0.0.0-...-a60b5f4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientType

type ClientType struct {
	Conn *redis.Client
}
var Client ClientType

func (*ClientType) Decr

func (client *ClientType) Decr(key string) int64

func (*ClientType) DecrBy

func (client *ClientType) DecrBy(key string, de int64) int64

func (*ClientType) Del

func (client *ClientType) Del(key ...string) *redis.Client

func (*ClientType) Expire

func (client *ClientType) Expire(key string, expiration time.Duration) bool

func (*ClientType) Get

func (client *ClientType) Get(key string) (string, error)

func (*ClientType) Incr

func (client *ClientType) Incr(key string) int64

func (*ClientType) IsExist

func (client *ClientType) IsExist(key string) bool

func (*ClientType) Lpop

func (client *ClientType) Lpop(key string) (string, error)

func (*ClientType) Lpush

func (client *ClientType) Lpush(key string, values ...interface{}) bool

func (*ClientType) Lrange

func (client *ClientType) Lrange(key string, start, stop int64) ([]string, error)

func (*ClientType) PSubscribe

func (client *ClientType) PSubscribe(channels ...string) *redis.PubSub

func (*ClientType) Pipeline

func (client *ClientType) Pipeline() redis.Pipeliner

func (*ClientType) Set

func (client *ClientType) Set(key string, value interface{}, expiration time.Duration) *redis.Client

func (*ClientType) SetIfNotExist

func (client *ClientType) SetIfNotExist(key string, value interface{}, expiration time.Duration) bool

Jump to

Keyboard shortcuts

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