redtable

package module
v0.0.0-...-5f7d3ce Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: MIT Imports: 6 Imported by: 1

README

wercker status

redtable

Documentation

Index

Constants

View Source
const (
	EnvRedisServerURL = "REDIS_SERVER_URL"
)

Variables

View Source
var (
	ErrConnectionAlreadyClosed = errors.New("connection already closed")
)

Functions

This section is empty.

Types

type Client

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

func New

func New(redisServerURLs ...string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) ConnErr

func (c *Client) ConnErr() error

func (*Client) Del

func (c *Client) Del(firstTable string, otherTables ...interface{}) (interface{}, error)

Del deletes one or more collections by the collection name, where any of the types are: hash, set, sorted set, list.

func (*Client) HDel

func (c *Client) HDel(hashTableName string, key interface{}) (interface{}, error)

func (*Client) HExists

func (c *Client) HExists(hashTableName string, key interface{}) (bool, error)

func (*Client) HGet

func (c *Client) HGet(hashTableName string, key interface{}) (interface{}, error)

func (*Client) HKeys

func (c *Client) HKeys(hashTableName string) ([]interface{}, error)

func (*Client) HLen

func (c *Client) HLen(hashTableName string) (int64, error)

func (*Client) HMGet

func (c *Client) HMGet(hashTableName string, keys ...interface{}) ([]interface{}, error)

func (*Client) HMove

func (c *Client) HMove(hashTableName1, hashTableName2 string, key interface{}) (interface{}, error)

HMove moves the contents keyed by a key from hashTableName1 to hashTableName2

func (*Client) HPop

func (c *Client) HPop(hashTableName string, key interface{}) (interface{}, error)

HPop performs a pop which is a combination of `HGet` and `HDel` from a HashTable

func (*Client) HSet

func (c *Client) HSet(hashTableName string, key, value interface{}) (interface{}, error)

func (*Client) LIndex

func (c *Client) LIndex(tableName string, index int64) (interface{}, error)

func (*Client) LLen

func (c *Client) LLen(tableName string) (int64, error)

func (*Client) LPop

func (c *Client) LPop(tableName string) (interface{}, error)

func (*Client) LPush

func (c *Client) LPush(tableName string, values ...interface{}) (interface{}, error)

func (*Client) SAdd

func (c *Client) SAdd(tableName string, items ...interface{}) (interface{}, error)

func (*Client) SIsMember

func (c *Client) SIsMember(tableName string, key interface{}) (bool, error)

func (*Client) SMembers

func (c *Client) SMembers(tableName string) (interface{}, error)

func (*Client) SPop

func (c *Client) SPop(tableName string) (interface{}, error)

SPop implements Redis command SPOP and it pops just 1 element from the set.

func (*Client) SRem

func (c *Client) SRem(tableName string, key interface{}, otherKeys ...interface{}) (interface{}, error)

SRem implements Redis command SREM which removes elements from a set.

Jump to

Keyboard shortcuts

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