Documentation
¶
Index ¶
- func New[V any]() cachestore.Store[V]
- func NewBackend() cachestore.Backend
- type NoopCache
- func (s *NoopCache[V]) BatchGet(ctx context.Context, keys []string) ([]V, []bool, error)
- func (s *NoopCache[V]) BatchSet(ctx context.Context, keys []string, values []V) error
- func (s *NoopCache[V]) BatchSetEx(ctx context.Context, keys []string, values []V, ttl time.Duration) error
- func (s *NoopCache[V]) ClearAll(ctx context.Context) error
- func (s *NoopCache[V]) Delete(ctx context.Context, key string) error
- func (s *NoopCache[V]) DeletePrefix(ctx context.Context, keyPrefix string) error
- func (s *NoopCache[V]) Exists(ctx context.Context, key string) (bool, error)
- func (s *NoopCache[V]) Get(ctx context.Context, key string) (V, bool, error)
- func (s *NoopCache[V]) GetOrSetWithLock(ctx context.Context, key string, ...) (V, error)
- func (s *NoopCache[V]) GetOrSetWithLockEx(ctx context.Context, key string, ...) (V, error)
- func (s *NoopCache[V]) Name() string
- func (s *NoopCache[V]) Options() cachestore.StoreOptions
- func (s *NoopCache[V]) Set(ctx context.Context, key string, value V) error
- func (s *NoopCache[V]) SetEx(ctx context.Context, key string, value V, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[V any]() cachestore.Store[V]
func NewBackend ¶ added in v0.12.1
func NewBackend() cachestore.Backend
Types ¶
type NoopCache ¶
type NoopCache[V any] struct{}
func (*NoopCache[V]) BatchSetEx ¶
func (*NoopCache[V]) DeletePrefix ¶
func (*NoopCache[V]) GetOrSetWithLock ¶
func (*NoopCache[V]) GetOrSetWithLockEx ¶
func (*NoopCache[V]) Options ¶
func (s *NoopCache[V]) Options() cachestore.StoreOptions
Click to show internal directories.
Click to hide internal directories.