Documentation ¶
Index ¶
- type Accessor
- func (acc *Accessor) Begin() (kvstorage.KeyValueTxAccessor, error)
- func (acc *Accessor) Commit() (err error)
- func (acc *Accessor) Del(key ...string) error
- func (acc *Accessor) Get(key string) (any, error)
- func (acc *Accessor) Incr(key string) (int64, error)
- func (acc *Accessor) Keys(pattern string) ([]string, error)
- func (acc *Accessor) MGet(keys ...string) ([]any, error)
- func (acc *Accessor) MSet(vals ...any) error
- func (acc *Accessor) Set(key string, value any, expiration ...time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor struct {
// contains filtered or unexported fields
}
Accessor implementation of the redis key value accessor
func (*Accessor) Begin ¶
func (acc *Accessor) Begin() (kvstorage.KeyValueTxAccessor, error)
Begin new transaction
Click to show internal directories.
Click to hide internal directories.