Versions in this module Expand all Collapse all v1 v1.3.1 Jan 6, 2026 v1.3.0 Jan 6, 2026 Changes in this version + type Cache interface + Close func() error + Del func(ctx context.Context, key string) error + Get func(ctx context.Context, key string, dest any) (bool, error) + IsExpired func(ctx context.Context, key string) (bool, error) + Set func(ctx context.Context, key string, value any, ttl time.Duration) error + SetNX func(ctx context.Context, key string, value interface{}, ttl time.Duration) (bool, error) + type RedisCache struct + func NewRedisCache(config util.Config) *RedisCache + func (r *RedisCache) Close() error + func (r *RedisCache) Del(ctx context.Context, key string) error + func (r *RedisCache) Get(ctx context.Context, key string, dest any) (bool, error) + func (r *RedisCache) IsExpired(ctx context.Context, key string) (bool, error) + func (r *RedisCache) Set(ctx context.Context, key string, value any, ttl time.Duration) error + func (r *RedisCache) SetNX(ctx context.Context, key string, value interface{}, ttl time.Duration) (bool, error)