Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeysInfoSlice ¶ added in v1.0.1
type KeysInfoSlice []KeysInfo
func (KeysInfoSlice) ToKeys ¶ added in v1.0.1
func (s KeysInfoSlice) ToKeys() (result []string)
type Store ¶
type Store interface { Close() error Put(key string, value []byte) error PutTTL(key string, value []byte, ttl time.Duration) error Get(key string) ([]byte, error) TTL(key string) (time.Duration, error) RPut(key string, r io.Reader, size int64) error RPutTTL(key string, r io.Reader, size int64, ttl time.Duration) error RGet(key string) (io.Reader, error) Exist(key string) (bool, error) Delete(key string) error RangeKeys(prefix, limit string, max int) (KeysInfoSlice, error) Range(prefix, limit string, cb func(key string, value []byte) bool) error RRange(prefix, limit string, cb func(key string, r io.Reader) bool) error }
Click to show internal directories.
Click to hide internal directories.