db

package
v0.0.0-...-af5a276 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

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

func NewDb

func NewDb(address string, dbNumber int) (*Db, error)

func (*Db) FlushDb

func (d *Db) FlushDb() error

Useful for testing

func (*Db) Get

func (d *Db) Get(key string, out interface{}) (interface{}, error)

func (*Db) SAdd

func (d *Db) SAdd(key string, values ...interface{}) error

func (*Db) SMembers

func (d *Db) SMembers(key string) ([]string, error)

func (*Db) Set

func (d *Db) Set(key string, value interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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