Documentation ¶
Index ¶
- Constants
- Variables
- type Store
- func (s *Store) Close()
- func (s *Store) Delete(key string) error
- func (s *Store) Get(key string) (*stores.KVByte, error)
- func (s *Store) List(prefix string) (stores.KVBytes, error)
- func (s *Store) Register(cb func(kvb stores.KVBytes))
- func (s *Store) Set(key string, bts []byte) error
- func (s *Store) UpdateKeys()
- func (s *Store) Updated(kvs interface{})
- func (s *Store) Watch() error
Constants ¶
View Source
const DefaultAddr = ":6379"
Variables ¶
View Source
var ( ErrRedisConfig = errors.New("missing redis config address") ErrIndexRange = errors.New("K/V index out of range") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) List ¶
List redis requires two operations in order to obtain the values from a key prefix. First we append the '*' needed by the `KEYS` lookup. Then use the return values as a variadic argument for the `MGET` request. See `fetchKeys` and `fetchVals` for implementation.
func (*Store) UpdateKeys ¶
func (s *Store) UpdateKeys()
Click to show internal directories.
Click to hide internal directories.