pub struct RedisDataSource { /* private fields */ }Expand description
redis datasource to Client entries.
Implementations§
Source§impl RedisDataSource
impl RedisDataSource
pub fn new( url: String, max_pool_size: u32, client_prefix: String, ) -> Result<Self, RedisError>
pub fn new_with_url( url: Url, max_pool_size: u32, client_prefix: String, ) -> Result<Self, RedisError>
pub fn get_url(&self) -> String
pub fn get_pool(&self) -> Pool<RedisConnectionManager>
Source§impl RedisDataSource
impl RedisDataSource
Sourcepub fn regist(&self, detail: &StringfiedEncodedClient) -> Result<()>
pub fn regist(&self, detail: &StringfiedEncodedClient) -> Result<()>
users can regist to redis a custom client struct which can be Serialized and Deserialized.
Trait Implementations§
Source§impl Clone for RedisDataSource
impl Clone for RedisDataSource
Source§fn clone(&self) -> RedisDataSource
fn clone(&self) -> RedisDataSource
Returns a duplicate 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 moreSource§impl Debug for RedisDataSource
impl Debug for RedisDataSource
Source§impl OauthClientDBRepository for RedisDataSource
impl OauthClientDBRepository for RedisDataSource
fn list(&self) -> Result<Vec<EncodedClient>>
fn find_client_by_id(&self, id: &str) -> Result<EncodedClient>
fn regist_from_encoded_client(&self, client: EncodedClient) -> Result<()>
Auto Trait Implementations§
impl Freeze for RedisDataSource
impl !RefUnwindSafe for RedisDataSource
impl Send for RedisDataSource
impl Sync for RedisDataSource
impl Unpin for RedisDataSource
impl !UnwindSafe for RedisDataSource
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