Documentation ¶
Index ¶
- type Redis
- func (r *Redis[V]) Clear(ctx context.Context)
- func (r *Redis[V]) Get(ctx context.Context, key any) (V, bool)
- func (r *Redis[V]) GetOrProvide(ctx context.Context, key any, valueProvider sweet.ValueProvider[V]) (V, bool)
- func (r *Redis[V]) GetOrProvideAsync(ctx context.Context, key any, valueProvider sweet.ValueProvider[V], ...) (V, bool)
- func (r *Redis[V]) Remove(ctx context.Context, key any)
- type RedisClientErrorsMonitoring
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis[V any] struct { // contains filtered or unexported fields }
func NewRedis ¶
func NewRedis[V any](cli *redis.Client, keyPrefix string, monitoring RedisClientErrorsMonitoring) *Redis[V]
func (*Redis[V]) GetOrProvide ¶
func (*Redis[V]) GetOrProvideAsync ¶
Click to show internal directories.
Click to hide internal directories.