rediskv

package
v0.2.1-0...-9c16218 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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