pub struct RedisPersistentDataStoreFactory { /* private fields */ }
Expand description
Contains methods for configuring a RedisPersistentDataStore.
Implementations§
Source§impl RedisPersistentDataStoreFactory
impl RedisPersistentDataStoreFactory
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new instance of RedisPersistentDataStoreFactory with standard default values.
Sourcepub fn prefix(&mut self, prefix: &str) -> &mut Self
pub fn prefix(&mut self, prefix: &str) -> &mut Self
Configure the redis store to use the specified prefix. This prefix defaults to “launchdarkly”.
Sourcepub fn url(&mut self, url: &str) -> &mut Self
pub fn url(&mut self, url: &str) -> &mut Self
Configure the redis client to connect to the provided URL. The default url is “redis://localhost:6379”.
Note that some Redis client features can also be specified as part of the URL: The redis crate supports the redis:// syntax (https://www.iana.org/assignments/uri-schemes/prov/redis), which can include a password and a database number, as well as rediss:// (https://www.iana.org/assignments/uri-schemes/prov/rediss), which enables TLS.
Trait Implementations§
Source§impl PersistentDataStoreFactory for RedisPersistentDataStoreFactory
impl PersistentDataStoreFactory for RedisPersistentDataStoreFactory
Source§fn create_persistent_data_store(
&self,
) -> Result<Box<dyn PersistentDataStore>, Error>
fn create_persistent_data_store( &self, ) -> Result<Box<dyn PersistentDataStore>, Error>
This is called by the SDK to create the implementation instance.
Auto Trait Implementations§
impl Freeze for RedisPersistentDataStoreFactory
impl RefUnwindSafe for RedisPersistentDataStoreFactory
impl Send for RedisPersistentDataStoreFactory
impl Sync for RedisPersistentDataStoreFactory
impl Unpin for RedisPersistentDataStoreFactory
impl UnwindSafe for RedisPersistentDataStoreFactory
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more