rediskv

package
v0.0.0-...-d3ae199 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rediskv

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

Rediskv stores the values that is set or retrieved in Redis

func New

func New(host string) (*Rediskv, error)

New creates a Redis key value instance

func (Rediskv) Connected

func (r Rediskv) Connected() (bool, error)

func (Rediskv) Database

func (r Rediskv) Database(db int) error

func (Rediskv) Databases

func (r Rediskv) Databases() (int, error)

Databases requested from config

func (Rediskv) Del

func (r Rediskv) Del(key string) error

Del removes the value with the given key

func (Rediskv) Get

func (r Rediskv) Get(key string) (string, error)

Get returns the value from the requested key.

func (Rediskv) HDel

func (r Rediskv) HDel(key, field string) error

HDel removes the value in the given field in the given key

func (Rediskv) HGet

func (r Rediskv) HGet(key, field string) (string, error)

HGet retrieve the value from the given field in the given key

func (Rediskv) HKeys

func (r Rediskv) HKeys(key string) ([]string, error)

HKeys returns all keys in a hash

func (Rediskv) HSet

func (r Rediskv) HSet(key, field string, value interface{}) error

HSet sets the value in the given field in the given key

func (Rediskv) Keys

func (r Rediskv) Keys(pattern string) ([]string, error)

Keys returns a list of keys matched by pattern

func (Rediskv) LGet

func (r Rediskv) LGet(key string) ([]string, error)

func (Rediskv) Set

func (r Rediskv) Set(key string, value interface{}) error

Set stores the value with the given key

func (Rediskv) Type

func (r Rediskv) Type(key string) (types.KVType, error)

Jump to

Keyboard shortcuts

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