Documentation ¶
Index ¶
- type Client
- type Config
- type KVRepository
- func (r *KVRepository) Delete(ctx context.Context, keys ...string) (delCount int64, err error)
- func (r *KVRepository) Get(ctx context.Context, key string) (string, error)
- func (r *KVRepository) GetThenDelete(ctx context.Context, key string) (string, error)
- func (r *KVRepository) Set(ctx context.Context, key, val string, exp time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVRepository ¶
type KVRepository struct {
// contains filtered or unexported fields
}
func NewKVRepository ¶
func NewKVRepository(client *Client) *KVRepository
func (*KVRepository) GetThenDelete ¶
Click to show internal directories.
Click to hide internal directories.