Documentation ¶
Overview ¶
Package storage contains built-in implementations of the cachebox.Storage interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiStorage ¶
type MultiStorage struct {
// contains filtered or unexported fields
}
MultiStorage implements the cachebox.Storage interface by wrapping a list of storages.
func NewMultiStorage ¶
func NewMultiStorage(storages ...cachebox.Storage) *MultiStorage
NewMultiStorage returns a new MultiStorage instance.
func (*MultiStorage) Delete ¶
func (m *MultiStorage) Delete(ctx context.Context, keys ...string) error
Delete performs a delete call in all underlying cache storages.
Returns early an error whether any of them fail.
Directories ¶
Path | Synopsis |
---|---|
Package memcached implements memcached adapters of the cachebox.Storage interface.
|
Package memcached implements memcached adapters of the cachebox.Storage interface. |
Package redis implements redis adapters of the cachebox.Storage interface.
|
Package redis implements redis adapters of the cachebox.Storage interface. |
Click to show internal directories.
Click to hide internal directories.