redis

package
v0.0.0-...-e1dbaa0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	redis.Conn
}

func (*Conn) Delete

func (c *Conn) Delete(data interface{})

func (*Conn) DoScript

func (c *Conn) DoScript(name string, keysAndArgs ...interface{}) (interface{}, error)

func (*Conn) Exists

func (conn *Conn) Exists(key string) (bool, error)

func (*Conn) Get

func (c *Conn) Get(data interface{}) error

func (*Conn) GetString

func (conn *Conn) GetString(key string) (string, error)

func (*Conn) HGetString

func (conn *Conn) HGetString(key, field string) (string, error)

func (*Conn) LoadScripts

func (c *Conn) LoadScripts() error

func (*Conn) Lock

func (conn *Conn) Lock(lock string) (acquired bool, err error)

Lock locks the given key in redis

func (*Conn) Put

func (c *Conn) Put(data interface{})

func (*Conn) SendScript

func (c *Conn) SendScript(name string, keysAndArgs ...interface{}) error

func (*Conn) Tx

func (conn *Conn) Tx() env.RedisTx

func (*Conn) Unlock

func (conn *Conn) Unlock(lock string) (released bool, err error)

Unlock unlocks the given key in reds provided we still own it

type Pool

type Pool struct {
	r.Pool
}

func NewPool

func NewPool() *Pool

func (*Pool) Redis

func (p *Pool) Redis() env.Redis

type Tx

type Tx struct {
	Conn
}

func (*Tx) Begin

func (tx *Tx) Begin() env.RedisTx

func (*Tx) Commit

func (tx *Tx) Commit() error

Jump to

Keyboard shortcuts

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