Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2026 Changes in this version + type Hooks struct + OnDelete func(ctx context.Context, key string) + OnError func(ctx context.Context, op string, key string, err error) + OnHit func(ctx context.Context, key string) + OnMiss func(ctx context.Context, key string) + OnSet func(ctx context.Context, key string, ttl time.Duration) + type RedisOptions struct + Address string + DB int + DefaultTTL time.Duration + DialTimeout time.Duration + DisableDefaults bool + Network string + Password string + Prefix string + ReadTimeout time.Duration + Username string + WriteTimeout time.Duration + type RedisStore struct + func NewRedisStore(options RedisOptions) *RedisStore + func (s *RedisStore) Delete(ctx context.Context, key string) error + func (s *RedisStore) Get(ctx context.Context, key string) ([]byte, bool, error) + func (s *RedisStore) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error + type Store interface + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string) ([]byte, bool, error) + Set func(ctx context.Context, key string, value []byte, ttl time.Duration) error + func WithHooks(store Store, hooks Hooks) Store