cache

package
v0.0.0-...-3502bef Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RClient

type RClient struct {
	*redis.Client
}

RClient redis client 拓展

func ConnectRedis

func ConnectRedis(addr string, pwd string) (r *RClient)

ConnectRedis ...

func (*RClient) GetIncrKey

func (r *RClient) GetIncrKey(key string, incr int) (int64, error)

GetIncrKey ...

func (*RClient) KeyLock

func (r *RClient) KeyLock(key string)

KeyLock SetNx实现的分布式锁

func (*RClient) KeyUnLock

func (r *RClient) KeyUnLock(key string)

KeyUnLock ...

func (*RClient) LRangeInt

func (r *RClient) LRangeInt(key string, s int, e int) ([]int, error)

LRangeInt ...

func (*RClient) LRangeString

func (r *RClient) LRangeString(key string, s int, e int) ([]string, error)

LRangeString ...

func (*RClient) RPushMultiBytes

func (r *RClient) RPushMultiBytes(key string, val [][]byte) error

RPushMultiBytes ...

func (*RClient) RPushMultiInt

func (r *RClient) RPushMultiInt(key string, val []int) error

RPushMultiInt ...

func (*RClient) RPushMultiInt64

func (r *RClient) RPushMultiInt64(key string, val []int64) error

RPushMultiInt64 ...

func (*RClient) SAddMultiInt

func (r *RClient) SAddMultiInt(key string, vals []int) error

SAddMultiInt ...

func (*RClient) SAddMultiInt64

func (r *RClient) SAddMultiInt64(key string, vals []int64) error

SAddMultiInt64 ...

func (*RClient) SAddMultiString

func (r *RClient) SAddMultiString(key string, strs []string) error

SAddMultiString ...

Jump to

Keyboard shortcuts

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