Documentation
¶
Index ¶
- Variables
- func NewDatastore(client *redis.Client) (datastore.ThreadSafeDatastore, error)
- func NewExpiringDatastore(client *redis.Client, ttl time.Duration) (datastore.ThreadSafeDatastore, error)
- type RedisDatastore
- func (ds *RedisDatastore) Delete(key datastore.Key) (err error)
- func (ds *RedisDatastore) Get(key datastore.Key) (value interface{}, err error)
- func (ds *RedisDatastore) Has(key datastore.Key) (exists bool, err error)
- func (ds *RedisDatastore) IsThreadSafe()
- func (ds *RedisDatastore) Put(key datastore.Key, value interface{}) error
- func (ds *RedisDatastore) Query(q query.Query) (query.Results, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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
Source Files
¶
- datastore.go
Click to show internal directories.
Click to hide internal directories.