pub struct Redis { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CacheBase for Redis
impl CacheBase for Redis
Source§fn add(
&mut self,
key: &str,
value: JsonValue,
expiration_date: u64,
) -> Result<bool, String>
fn add( &mut self, key: &str, value: JsonValue, expiration_date: u64, ) -> Result<bool, String>
设置
- expiration_date 过期时间 s 秒
Source§fn set_message_queue(
&mut self,
key: &str,
value: JsonValue,
) -> Result<bool, String>
fn set_message_queue( &mut self, key: &str, value: JsonValue, ) -> Result<bool, String>
设置消息队列
Source§fn set_object(
&mut self,
key: &str,
field: &str,
value: JsonValue,
) -> Result<bool, String>
fn set_object( &mut self, key: &str, field: &str, value: JsonValue, ) -> Result<bool, String>
设置对象集合
Source§fn add_hash(
&mut self,
key: &str,
field: &str,
value: JsonValue,
) -> Result<bool, String>
fn add_hash( &mut self, key: &str, field: &str, value: JsonValue, ) -> Result<bool, String>
哈希-添加
Auto Trait Implementations§
impl Freeze for Redis
impl RefUnwindSafe for Redis
impl Send for Redis
impl Sync for Redis
impl Unpin for Redis
impl UnwindSafe for Redis
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