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