Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) ConnErr() error
- func (c *Client) Del(firstTable string, otherTables ...interface{}) (interface{}, error)
- func (c *Client) HDel(hashTableName string, key interface{}) (interface{}, error)
- func (c *Client) HExists(hashTableName string, key interface{}) (bool, error)
- func (c *Client) HGet(hashTableName string, key interface{}) (interface{}, error)
- func (c *Client) HKeys(hashTableName string) ([]interface{}, error)
- func (c *Client) HLen(hashTableName string) (int64, error)
- func (c *Client) HMGet(hashTableName string, keys ...interface{}) ([]interface{}, error)
- func (c *Client) HMove(hashTableName1, hashTableName2 string, key interface{}) (interface{}, error)
- func (c *Client) HPop(hashTableName string, key interface{}) (interface{}, error)
- func (c *Client) HSet(hashTableName string, key, value interface{}) (interface{}, error)
- func (c *Client) LIndex(tableName string, index int64) (interface{}, error)
- func (c *Client) LLen(tableName string) (int64, error)
- func (c *Client) LPop(tableName string) (interface{}, error)
- func (c *Client) LPush(tableName string, values ...interface{}) (interface{}, error)
- func (c *Client) SAdd(tableName string, items ...interface{}) (interface{}, error)
- func (c *Client) SIsMember(tableName string, key interface{}) (bool, error)
- func (c *Client) SMembers(tableName string) (interface{}, error)
- func (c *Client) SPop(tableName string) (interface{}, error)
- func (c *Client) SRem(tableName string, key interface{}, otherKeys ...interface{}) (interface{}, error)
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 (*Client) Del ¶
Del deletes one or more collections by the collection name, where any of the types are: hash, set, sorted set, list.
func (*Client) HMove ¶
HMove moves the contents keyed by a key from hashTableName1 to hashTableName2
func (*Client) HPop ¶
HPop performs a pop which is a combination of `HGet` and `HDel` from a HashTable
Click to show internal directories.
Click to hide internal directories.