redisconn

package module
v0.0.0-...-da60d74 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

README

redisconn

redigo wrapper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type R

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

func Open

func Open(network, address, password string) (*R, error)

Open a new *R

func (*R) Do

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

Do something

func (*R) DoInt

func (r *R) DoInt(cmd string, args ...interface{}) (int, error)

Do with int value returned example: DoInt("INCR", "key")

func (*R) Get

func (r *R) Get() redis.Conn

get a redis connection

func (*R) GetInt

func (r *R) GetInt(k string) (int, error)

func (*R) GetInt32

func (r *R) GetInt32(k string) (int32, error)

func (*R) GetInt32List

func (r *R) GetInt32List(k string, start int, stop int) ([]int32, error)

func (*R) GetInt64

func (r *R) GetInt64(k string) (int64, error)

func (*R) GetInt64List

func (r *R) GetInt64List(k string, start int, stop int) ([]int64, error)

func (*R) GetIntList

func (r *R) GetIntList(k string, start int, stop int) ([]int, error)

func (*R) GetString

func (r *R) GetString(k string) (str string, err error)

Jump to

Keyboard shortcuts

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