Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2026 Changes in this version + type Cache interface + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string, data interface{}) error + Set func(ctx context.Context, key string, value interface{}, ttl time.Duration) error + func NewCache() (Cache, error) + func NewCacheWithClient(client redis.UniversalClient) Cache + type RedisCache struct + func (r *RedisCache) Delete(ctx context.Context, key string) error + func (r *RedisCache) Get(ctx context.Context, key string, data interface{}) error + func (r *RedisCache) Set(ctx context.Context, key string, data interface{}, ttl time.Duration) error