redis

package
v0.0.0-...-dba4764 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2015 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	P *redis.Pool
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Del

func (r *Client) Del(key string) interface{}

func (*Client) Do

func (r *Client) Do(commandName string, args ...interface{}) (reply interface{}, err error)

func (*Client) Get

func (r *Client) Get(key string) interface{}

func (*Client) Initialize

func (r *Client) Initialize(config string) error

func (*Client) IsExist

func (r *Client) IsExist(key string) bool

func (*Client) Listall

func (r *Client) Listall(key string) interface{}

func (*Client) Put

func (r *Client) Put(key string, val interface{}, timeout int64) error

func (*Client) Rpush

func (r *Client) Rpush(key string, val interface{}) (err error)

Jump to

Keyboard shortcuts

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