Versions in this module Expand all Collapse all v1 v1.1.0 May 5, 2026 v1.0.0 May 3, 2026 Changes in this version + func Delete(ctx context.Context, c *RedisStore, key string) error + func DeleteByStartsWith(ctx context.Context, rs *RedisStore, key string) error + func Get[T any](ctx context.Context, rs *RedisStore, key string, val *T, fn func() (T, error), ...) error + type KVMap struct + func NewKVMap[K comparable, V any](ttl time.Duration) *KVMap[K, V] + func (m *KVMap[K, V]) Get(key K) (V, bool) + func (m *KVMap[K, V]) Purge() + func (m *KVMap[K, V]) Set(key K, val V) + func (m *KVMap[K, V]) Size() int + type RedisClient interface + Delete func(ctx context.Context, key string) error + DeleteByMatch func(ctx context.Context, pattern string) error + GetStruct func(ctx context.Context, key string, value any) error + SetStruct func(ctx context.Context, key string, value any, ttl time.Duration) error + type RedisStore struct + func NewRedisStore(redisClient RedisClient, log *zap.Logger) *RedisStore