Versions in this module Expand all Collapse all v0 v0.1.1 Jun 11, 2026 Changes in this version + var ErrNotFound = errors.New("cache: key not found") + type Cache interface + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string) ([]byte, error) + Set func(ctx context.Context, key string, value []byte, ttl time.Duration) error + type InMemory struct + func NewInMemory() *InMemory + func (c *InMemory) Delete(_ context.Context, key string) error + func (c *InMemory) Get(_ context.Context, key string) ([]byte, error) + func (c *InMemory) Set(_ context.Context, key string, value []byte, ttl time.Duration) error + type Noop struct + func NewNoop() Noop + func (Noop) Delete(_ context.Context, _ string) error + func (Noop) Get(_ context.Context, _ string) ([]byte, error) + func (Noop) Set(_ context.Context, _ string, _ []byte, _ time.Duration) error