store

package
v0.0.0-...-8085edb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundError = errors.New("Key not found")
)

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(addr string, timeout time.Duration) (*Client, error)

func (*Client) Clear

func (c *Client) Clear() (bool, error)

func (*Client) Delete

func (c *Client) Delete(key string) (bool, error)

func (*Client) Get

func (c *Client) Get(key string) (*StoreItem, error)

func (*Client) Put

func (c *Client) Put(item *StoreItem) (bool, error)

type Store

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

func New

func New() *Store

func (*Store) Clear

func (r *Store) Clear(skip bool, ack *bool) error

func (*Store) Delete

func (r *Store) Delete(key string, ack *bool) error

func (*Store) Get

func (r *Store) Get(key string, resp *StoreItem) (err error)

func (*Store) Put

func (r *Store) Put(item *StoreItem, added *bool) error

type StoreItem

type StoreItem struct {
	Key   string
	Value []byte
}

Jump to

Keyboard shortcuts

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