kvstore

package
v0.0.0-...-29ca9c5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(reply interface{}, err error) ([][]byte, error)

Bytes is a helper that converts a multi-bulk command reply to a [][]byte. If err is not equal to nil, then Ints returns nil, err. If one if the multi-bulk items is not a bulk value or nil, then Ints returns an error.

func Ints

func Ints(reply interface{}, err error) ([]int, error)

Ints is a helper that converts a multi-bulk command reply to a []int. If err is not equal to nil, then Ints returns nil, err. If one if the multi-bulk items is not a bulk value or nil, then Ints returns an error.

Types

type KVStore

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

func Open

func Open(dataSourceName string) (*KVStore, error)

func (*KVStore) Close

func (kvstore *KVStore) Close() error

func (*KVStore) Get

func (kvstore *KVStore) Get() redis.Conn

Jump to

Keyboard shortcuts

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