Versions in this module Expand all Collapse all v0 v0.1.0 Aug 17, 2026 Changes in this version + type Cache struct + func New(redisOpts *goredis.Options, opts ...Option) (*Cache, error) + func NewWithClient(client goredis.Cmdable, opts ...Option) (*Cache, error) + func (c *Cache) Clear(ctx context.Context) error + func (c *Cache) Client() goredis.Cmdable + func (c *Cache) Close() error + func (c *Cache) Delete(ctx context.Context, key string) error + func (c *Cache) Exists(ctx context.Context, key string) (bool, error) + func (c *Cache) Get(ctx context.Context, key string) ([]byte, error) + func (c *Cache) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error + type Option func(*config) + func WithDefaultTTL(ttl time.Duration) Option + func WithPrefix(prefix string) Option