Documentation
¶
Overview ¶
Package noop provides a no-op cache useful for tests and feature flags.
Index ¶
- type Cache
- func (Cache[K, V]) Clear(context.Context) error
- func (Cache[K, V]) Close() error
- func (Cache[K, V]) Delete(context.Context, K) error
- func (Cache[K, V]) Exists(context.Context, K) (bool, error)
- func (Cache[K, V]) Get(context.Context, K) (V, error)
- func (Cache[K, V]) Set(context.Context, K, V, time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable, V any] struct{}
Cache discards all writes and always misses on reads.
Click to show internal directories.
Click to hide internal directories.