bytestore

package
v0.0.0-...-797e8bf Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2016 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package bytestore provides a redis backed bytestore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Provides a redis backed Store.

func New

func New(client *redis.Client) *Store

Create a new Store instance with the given client.

func (*Store) Get

func (c *Store) Get(key string) ([]byte, error)

Get a stored value. A missing value will return nil, nil.

func (*Store) Store

func (c *Store) Store(key string, value []byte) error

Store a value.

Jump to

Keyboard shortcuts

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