Versions in this module Expand all Collapse all v2 v2.0.1 Mar 4, 2024 Changes in this version + type Redis struct + func NewRedis[K comparable, V any](cli *redis.Client, ctxProvider func(key any) context.Context) *Redis[K, V] + func (r *Redis[K, V]) Clear(ctx context.Context) + func (r *Redis[K, V]) Get(ctx context.Context, key K) (V, bool) + func (r *Redis[K, V]) GetOrProvide(ctx context.Context, key K, valueProvider sweet.ValueProvider[K, V]) (V, bool) + func (r *Redis[K, V]) GetOrProvideAsync(ctx context.Context, key K, valueProvider sweet.ValueProvider[K, V], ...) (V, bool) + func (r *Redis[K, V]) Remove(ctx context.Context, key K) + type RedisClientErrorsMonitoring interface + RemoveFailed func(ctx context.Context, key string, err error) + SetFailed func(ctx context.Context, key string, err error)