redis

package
v0.0.0-...-325abe0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(conn redis.Conn) error

func Connect

func Connect() (redis.Conn, error)

func GetRedisConn

func GetRedisConn() (redis.Conn, error)

Types

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func GetProxy

func GetProxy() *Proxy

GetProxy get redis oper proxy

func (*Proxy) Del

func (rp *Proxy) Del(key string) (int64, error)

func (*Proxy) Exist

func (rp *Proxy) Exist(key string) (bool, error)

func (*Proxy) Expire

func (rp *Proxy) Expire(key string, expire int64) (bool, error)

func (*Proxy) Get

func (rp *Proxy) Get(key string) (string, error)

func (*Proxy) Incrby

func (rp *Proxy) Incrby(key string, v int64) (int64, error)

func (Proxy) IsEmpty

func (rp Proxy) IsEmpty() bool

func (*Proxy) ReleaseDistributedLock

func (rp *Proxy) ReleaseDistributedLock(key string, v string) (bool, error)

func (*Proxy) Set

func (rp *Proxy) Set(key string, value string) error

func (*Proxy) SetEx

func (rp *Proxy) SetEx(key string, value string, ex int64) error

func (*Proxy) TryGetDistributedLock

func (rp *Proxy) TryGetDistributedLock(key string, v string) (bool, error)

func (*Proxy) ZAdd

func (rp *Proxy) ZAdd(key string, score float64, value string) error

Jump to

Keyboard shortcuts

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