Versions in this module Expand all Collapse all v1 v1.10.0 Jan 2, 2026 v1.9.0 Jan 2, 2026 Changes in this version + type Store struct + func New[K comparable, V any](ctx context.Context, cacheID string, c ...compress.Compressor) (*Store[K, V], error) + func (*Store[K, V]) ValidateKey(key K) error + func (s *Store[K, V]) Cleanup(ctx context.Context, maxAge time.Duration) (int, error) + func (s *Store[K, V]) Close() error + func (s *Store[K, V]) Delete(ctx context.Context, key K) error + func (s *Store[K, V]) Flush(ctx context.Context) (int, error) + func (s *Store[K, V]) Get(ctx context.Context, key K) (value V, expiry time.Time, found bool, err error) + func (s *Store[K, V]) Len(ctx context.Context) (int, error) + func (s *Store[K, V]) Location(key K) string + func (s *Store[K, V]) Set(ctx context.Context, key K, value V, expiry time.Time) error