redis

package
v0.0.0-...-b2d7ade Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Nil = redis.Nil

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redis.Client
}

func NewRedisClient

func NewRedisClient(addr, passwd string, db int) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Exist

func (c *Client) Exist(key string) (bool, error)

func (*Client) Get

func (c *Client) Get(key string) (string, error)

func (*Client) HGet

func (c *Client) HGet(key, field string) (string, error)

func (*Client) HGetAll

func (c *Client) HGetAll(key string) (map[string]string, error)

func (*Client) HSet

func (c *Client) HSet(key, field, value string) error

func (*Client) Keys

func (c *Client) Keys(pattern string) (*[]string, error)

func (*Client) Pipeline

func (c *Client) Pipeline(keys []string) []string

func (*Client) PrintZRangeWithScores

func (c *Client) PrintZRangeWithScores(key string, start, stop int64) string

func (*Client) Set

func (c *Client) Set(key, value string) error

func (*Client) SetExpire

func (c *Client) SetExpire(key, value string, expire int64) error

func (*Client) ZAdd

func (c *Client) ZAdd(key string, score int64, mem string) error

func (*Client) ZRange

func (c *Client) ZRange(key string, start, stop int64) ([]string, error)

func (*Client) ZRangeByScoreWithScores

func (c *Client) ZRangeByScoreWithScores(key string, start, stop string, offset, count int64) ([]redis.Z, error)

func (*Client) ZRangeWithScores

func (c *Client) ZRangeWithScores(key string, start, stop int64) ([]redis.Z, error)

Jump to

Keyboard shortcuts

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