Versions in this module Expand all Collapse all v0 v0.1.5 Nov 26, 2025 Changes in this version + var ErrKeyExpired = errors.New("key expired") + var ErrKeyNotFound = errors.New("key not found") + func NewStorage() adapter.Storage + func NewStorageWithCleanupInterval(interval time.Duration) adapter.Storage + type Storage struct + func (s *Storage) Clear() error + func (s *Storage) Close() error + func (s *Storage) Delete(keys ...string) error + func (s *Storage) Exists(key string) bool + func (s *Storage) Expire(key string, expiration time.Duration) error + func (s *Storage) Get(key string) (any, error) + func (s *Storage) Keys(pattern string) ([]string, error) + func (s *Storage) Ping() error + func (s *Storage) Set(key string, value any, expiration time.Duration) error + func (s *Storage) TTL(key string) (time.Duration, error)