pub struct RedisBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> RedisBuilder<S>
impl<S: State> RedisBuilder<S>
Sourcepub fn build(self) -> Rediswhere
S: IsComplete,
pub fn build(self) -> Rediswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn memory(self, value: String) -> RedisBuilder<SetMemory<S>>where
S::Memory: IsUnset,
pub fn memory(self, value: String) -> RedisBuilder<SetMemory<S>>where
S::Memory: IsUnset,
Sourcepub fn maybe_memory(self, value: Option<String>) -> RedisBuilder<SetMemory<S>>where
S::Memory: IsUnset,
pub fn maybe_memory(self, value: Option<String>) -> RedisBuilder<SetMemory<S>>where
S::Memory: IsUnset,
Sourcepub fn eviction_policy(
self,
value: RedisEvictionPolicy,
) -> RedisBuilder<SetEvictionPolicy<S>>where
S::EvictionPolicy: IsUnset,
pub fn eviction_policy(
self,
value: RedisEvictionPolicy,
) -> RedisBuilder<SetEvictionPolicy<S>>where
S::EvictionPolicy: IsUnset,
Sourcepub fn maybe_eviction_policy(
self,
value: Option<RedisEvictionPolicy>,
) -> RedisBuilder<SetEvictionPolicy<S>>where
S::EvictionPolicy: IsUnset,
pub fn maybe_eviction_policy(
self,
value: Option<RedisEvictionPolicy>,
) -> RedisBuilder<SetEvictionPolicy<S>>where
S::EvictionPolicy: IsUnset,
Sourcepub fn persistence(self, value: bool) -> RedisBuilder<SetPersistence<S>>where
S::Persistence: IsUnset,
pub fn persistence(self, value: bool) -> RedisBuilder<SetPersistence<S>>where
S::Persistence: IsUnset,
Optional (Some / Option setters).
Default: false.
Keep data across a server restart or maintenance. Default false (a
cache). On AWS, GCP and Azure this needs high_availability, because the
clouds only persist data from a replicated deployment. Local always
persists with an append-only file when this is on.
Sourcepub fn maybe_persistence(
self,
value: Option<bool>,
) -> RedisBuilder<SetPersistence<S>>where
S::Persistence: IsUnset,
pub fn maybe_persistence(
self,
value: Option<bool>,
) -> RedisBuilder<SetPersistence<S>>where
S::Persistence: IsUnset,
Optional (Some / Option setters).
Default: false.
Keep data across a server restart or maintenance. Default false (a
cache). On AWS, GCP and Azure this needs high_availability, because the
clouds only persist data from a replicated deployment. Local always
persists with an append-only file when this is on.
Sourcepub fn high_availability(
self,
value: bool,
) -> RedisBuilder<SetHighAvailability<S>>where
S::HighAvailability: IsUnset,
pub fn high_availability(
self,
value: bool,
) -> RedisBuilder<SetHighAvailability<S>>where
S::HighAvailability: IsUnset,
Sourcepub fn maybe_high_availability(
self,
value: Option<bool>,
) -> RedisBuilder<SetHighAvailability<S>>where
S::HighAvailability: IsUnset,
pub fn maybe_high_availability(
self,
value: Option<bool>,
) -> RedisBuilder<SetHighAvailability<S>>where
S::HighAvailability: IsUnset,
Sourcepub fn encryption_key(
self,
value: ResourceRef,
) -> RedisBuilder<SetEncryptionKey<S>>where
S::EncryptionKey: IsUnset,
pub fn encryption_key(
self,
value: ResourceRef,
) -> RedisBuilder<SetEncryptionKey<S>>where
S::EncryptionKey: IsUnset,
Sourcepub fn maybe_encryption_key(
self,
value: Option<ResourceRef>,
) -> RedisBuilder<SetEncryptionKey<S>>where
S::EncryptionKey: IsUnset,
pub fn maybe_encryption_key(
self,
value: Option<ResourceRef>,
) -> RedisBuilder<SetEncryptionKey<S>>where
S::EncryptionKey: IsUnset,
Auto Trait Implementations§
impl<S> Forget for RedisBuilder<S>
impl<S> Freeze for RedisBuilder<S>
impl<S> RefUnwindSafe for RedisBuilder<S>
impl<S> Send for RedisBuilder<S>
impl<S> Sync for RedisBuilder<S>
impl<S> Unpin for RedisBuilder<S>
impl<S> UnsafeUnpin for RedisBuilder<S>
impl<S> UnwindSafe for RedisBuilder<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more