pub struct RedisActorSessionStoreBuilder { /* private fields */ }
Expand description
A fluent builder to construct a RedisActorSessionStore
instance with custom configuration
parameters.
Implementations§
source§impl RedisActorSessionStoreBuilder
impl RedisActorSessionStoreBuilder
sourcepub fn cache_keygen<F>(self, keygen: F) -> Selfwhere
F: Fn(&str) -> String + 'static,
pub fn cache_keygen<F>(self, keygen: F) -> Selfwhere
F: Fn(&str) -> String + 'static,
Set a custom cache key generation strategy, expecting a session key as input.
sourcepub fn build(self) -> RedisActorSessionStore
pub fn build(self) -> RedisActorSessionStore
Finalise the builder and return a RedisActorSessionStore
instance.