Versions in this module Expand all Collapse all v1 v1.3.0 Dec 17, 2025 Changes in this version + func NewRedisClient(addr, pw string, db int) *redis.Client + func SetCacheJSON(ctx context.Context, cache *Storage, key string, value any, ttl time.Duration) + type Storage struct + func NewRedisStorage(rdb *redis.Client) *Storage + func (s *Storage) Delete(ctx context.Context, key string) error + func (s *Storage) DeleteByPattern(ctx context.Context, pattern string) error + func (s *Storage) DeleteByPrefixes(ctx context.Context, prefixes ...string) error + func (s *Storage) Get(ctx context.Context, key string) (string, error) + func (s *Storage) Ping(ctx context.Context) error + func (s *Storage) Set(ctx context.Context, key string, value string, ttl time.Duration) error