Documentation ¶
Index ¶
- type Factory
- type KVS
- func (kvs *KVS[T]) CreateTxDelCmd(_ context.Context, key string) (cache.TxDelCmd, error)
- func (kvs *KVS[T]) CreateTxSetCmd(_ context.Context, key string, value T, ttl time.Duration) (cache.TxSetCmd, error)
- func (kvs *KVS[T]) Del(ctx context.Context, key string) error
- func (kvs *KVS[T]) Get(ctx context.Context, key string) (T, error)
- func (kvs *KVS[T]) GetDel(ctx context.Context, key string) (T, error)
- func (kvs *KVS[T]) Keys(ctx context.Context, pattern string, prefix cache.Prefix) ([]string, error)
- func (kvs *KVS[T]) Set(ctx context.Context, key string, value T, ttl time.Duration) error
- func (kvs *KVS[T]) Tx(ctx context.Context, sets []cache.TxSetCmd, dels []cache.TxDelCmd) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVS ¶
func (*KVS[T]) CreateTxDelCmd ¶
func (*KVS[T]) CreateTxSetCmd ¶
Click to show internal directories.
Click to hide internal directories.