pub struct AsyncRedisCache<K, V> { /* private fields */ }
Expand description

Cache store backed by redis

Values have a ttl applied and enforced by redis.

Implementations

Initialize an AsyncRedisCacheBuilder

Return the redis connection string used

Trait Implementations

Get a cached value

Set a cached value

Remove a cached value

Set the flag to control whether cache hits refresh the ttl of cached values, returns the old flag value

Return the lifespan of cached values (time to eviction)

Set the lifespan of cached values, returns the old value

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.