pub struct RedisClient { /* private fields */ }
Expand description
A Redis client for Floxide distributed workflow system.
Implementations§
Source§impl RedisClient
impl RedisClient
Sourcepub async fn new(config: RedisConfig) -> Result<Self, RedisClientError>
pub async fn new(config: RedisConfig) -> Result<Self, RedisClientError>
Create a new Redis client with the given configuration.
Sourcepub fn key_prefix(&self) -> &str
pub fn key_prefix(&self) -> &str
Get the key prefix for Redis keys.
Sourcepub fn prefixed_key(&self, key: &str) -> String
pub fn prefixed_key(&self, key: &str) -> String
Create a prefixed key for Redis.
Trait Implementations§
Source§impl Clone for RedisClient
impl Clone for RedisClient
Source§fn clone(&self) -> RedisClient
fn clone(&self) -> RedisClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RedisClient
impl !RefUnwindSafe for RedisClient
impl Send for RedisClient
impl Sync for RedisClient
impl Unpin for RedisClient
impl !UnwindSafe for RedisClient
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