drive

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HideKey

func HideKey(key string) string

Types

type RedisClient

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

func NewRedisClient

func NewRedisClient(host string, port string, password string, db int, poolSize int) RedisClient

func (*RedisClient) BLPop

func (c *RedisClient) BLPop(key string, timeout time.Duration) *redis.StringSliceCmd

func (*RedisClient) Close

func (c *RedisClient) Close()

func (*RedisClient) Do

func (c *RedisClient) Do(args ...interface{}) *redis.Cmd

func (*RedisClient) Exists

func (c *RedisClient) Exists(key string) (bool, error)

======================= high api =======================

func (*RedisClient) Flush

func (c *RedisClient) Flush() error

func (*RedisClient) Get

func (c *RedisClient) Get(key string) *redis.StringCmd

func (*RedisClient) Ping

func (c *RedisClient) Ping() error

func (*RedisClient) RPush

func (c *RedisClient) RPush(key string, value interface{}) error

func (*RedisClient) Set

func (c *RedisClient) Set(key string, value interface{}, exTime time.Duration) error

Jump to

Keyboard shortcuts

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