redis

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2015 License: 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

func NewDatastore

func NewDatastore(client *redis.Client) (datastore.ThreadSafeDatastore, error)

func NewExpiringDatastore

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

Types

type RedisDatastore

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

func (*RedisDatastore) Delete

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

func (*RedisDatastore) Get

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

func (*RedisDatastore) Has

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

func (*RedisDatastore) IsThreadSafe

func (ds *RedisDatastore) IsThreadSafe()

func (*RedisDatastore) Put

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

func (*RedisDatastore) Query

func (ds *RedisDatastore) 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