Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection is an active connection to a Redis key value store.
func NewConnection ¶
func NewConnection(uri string) (c *Connection, err error)
NewConnection opens a new connection to a Redis key value store.
func (*Connection) Append ¶
func (c *Connection) Append(key, value string) error
Append will append the value to the existing entry for the supplied key, or create a new one.
func (*Connection) Disconnect ¶
func (c *Connection) Disconnect() error
Disconnect disconnects from the Redis key value store.
func (*Connection) Get ¶
func (c *Connection) Get(key string) (string, error)
Get will retrieve the value at the supplied key. If the key is not found, "" is returned without an error.
func (*Connection) GetJobOutput ¶
func (c *Connection) GetJobOutput(id string) (string, error)
GetJobOutput retrieves the stored output of the job with the supplied id.
func (*Connection) Set ¶
func (c *Connection) Set(key, value string) error
Set will store the value at the supplied key.
Click to show internal directories.
Click to hide internal directories.