Documentation ¶
Index ¶
- func BitGet(key string, idx int) (bool, error)
- func BitSet(key string, idx int, val bool, ttl time.Duration) error
- func BitSets(key string, val bool, ttl time.Duration, idx ...int) error
- func Decr(key string, val int, ttl time.Duration) (int, error)
- func Delete(key string) error
- func Get(key string, rcv *string) error
- func Incr(key string, val int, ttl time.Duration) (int, error)
- func MGet(key string, rcv interface{}) error
- func MSet(key string, val interface{}, ttl time.Duration) error
- func Register(i Interface)
- func Set(key string, val string, ttl time.Duration) error
- func TTL(key string) (time.Duration, error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface { BitSet(key string, idx int, val bool, ttl time.Duration) error BitSets(key string, val bool, ttl time.Duration, idx ...int) error BitGet(key string, idx int) (bool, error) Set(key string, val string, ttl time.Duration) error Get(key string, rcv *string) error MSet(key string, val interface{}, ttl time.Duration) error MGet(key string, rcv interface{}) error Decr(key string, val int, ttl time.Duration) (int, error) Incr(key string, val int, ttl time.Duration) (int, error) TTL(key string) (time.Duration, error) Delete(key string) error }
Click to show internal directories.
Click to hide internal directories.