Documentation
¶
Overview ¶
Package azurecache provides an in-memory mock implementation of Azure Cache for Redis.
Index ¶
- type Mock
- func (m *Mock) CreateCache(_ context.Context, cfg driver.CacheConfig) (*driver.CacheInfo, error)
- func (m *Mock) Delete(_ context.Context, cacheName, key string) error
- func (m *Mock) DeleteCache(_ context.Context, name string) error
- func (m *Mock) FlushAll(_ context.Context, cacheName string) error
- func (m *Mock) Get(_ context.Context, cacheName, key string) (*driver.Item, error)
- func (m *Mock) GetCache(_ context.Context, name string) (*driver.CacheInfo, error)
- func (m *Mock) Keys(_ context.Context, cacheName, pattern string) ([]string, error)
- func (m *Mock) ListCaches(_ context.Context) ([]driver.CacheInfo, error)
- func (m *Mock) Set(_ context.Context, cacheName, key string, value []byte, ttl time.Duration) error
- func (m *Mock) SetMonitoring(mon mondriver.Monitoring)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
Mock is an in-memory mock implementation of Azure Cache for Redis.
func (*Mock) CreateCache ¶
CreateCache creates a new Azure Cache for Redis instance.
func (*Mock) DeleteCache ¶
DeleteCache deletes an Azure Cache for Redis instance by name.
func (*Mock) ListCaches ¶
ListCaches lists all Azure Cache for Redis instances.
func (*Mock) SetMonitoring ¶
func (m *Mock) SetMonitoring(mon mondriver.Monitoring)
SetMonitoring sets the monitoring backend for auto-metric generation.
Click to show internal directories.
Click to hide internal directories.