pub struct ApeRedis {
pub client: Connection,
}Fields§
§client: ConnectionImplementations§
Source§impl ApeRedis
impl ApeRedis
pub fn new<S: AsRef<str> + Display>(host: S, port: u16, password: S) -> Self
pub fn ping(&mut self) -> String
pub fn rpush(&mut self, list_name: &str, value: &str) -> Result<i64, RedisError>
pub fn set(&mut self, key: &str, value: &str) -> bool
pub fn set_expire(&mut self, key: &str, value: &str, expire: u32) -> bool
pub fn get(&mut self, key: &str) -> String
pub fn exists(&mut self, key: &str) -> bool
pub fn del(&mut self, key: &str) -> bool
pub fn blpop( &mut self, key: &str, timeout: u32, ) -> Result<(String, String), RedisError>
Auto Trait Implementations§
impl !RefUnwindSafe for ApeRedis
impl !UnwindSafe for ApeRedis
impl Freeze for ApeRedis
impl Send for ApeRedis
impl Sync for ApeRedis
impl Unpin for ApeRedis
impl UnsafeUnpin for ApeRedis
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