redis

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidType = errors.New("redis datastore: invalid type error. this datastore only supports []byte values")

Functions

This section is empty.

Types

type Datastore

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

func NewDatastore

func NewDatastore(client *redis.Client) (*Datastore, error)

func NewExpiringDatastore

func NewExpiringDatastore(client *redis.Client, ttl time.Duration) (*Datastore, error)

func (*Datastore) Batch added in v0.3.8

func (ds *Datastore) Batch() (datastore.Batch, error)

func (*Datastore) Close added in v0.3.8

func (ds *Datastore) Close() error

func (*Datastore) Delete

func (ds *Datastore) Delete(key datastore.Key) (err error)

func (*Datastore) Get

func (ds *Datastore) Get(key datastore.Key) (value interface{}, err error)

func (*Datastore) Has

func (ds *Datastore) Has(key datastore.Key) (exists bool, err error)

func (*Datastore) IsThreadSafe

func (ds *Datastore) IsThreadSafe()

func (*Datastore) Put

func (ds *Datastore) Put(key datastore.Key, value interface{}) error

func (*Datastore) Query

func (ds *Datastore) Query(q query.Query) (query.Results, error)

Jump to

Keyboard shortcuts

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