Documentation
¶
Index ¶
- type Storage
- func (db *Storage[T]) Copy(ctx context.Context, source T, target T) error
- func (db *Storage[T]) Get(ctx context.Context, key T, expire time.Duration) (string, error)
- func (db *Storage[T]) Has(ctx context.Context, key T) (T, error)
- func (db *Storage[T]) Match(ctx context.Context, key T, expire time.Duration, ...) ([]string, error)
- func (db *Storage[T]) Put(ctx context.Context, entity T, expire time.Duration) (string, error)
- func (db *Storage[T]) Remove(ctx context.Context, key T) error
- func (db *Storage[T]) Wait(ctx context.Context, key T, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.