pub struct Connection { /* private fields */ }
Implementations§
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Sourcepub fn incr(&self, key: &str) -> Result<i64, Error>
pub fn incr(&self, key: &str) -> Result<i64, Error>
Increments the number stored at key by one.
If the key does not exist, it is set to 0 before performing the operation.
An error::type-error
is returned if the key contains a value of the wrong type
or contains a string that can not be represented as integer.
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Source§impl Connection
impl Connection
Sourcepub fn execute(
&self,
command: &str,
arguments: &[RedisParameter],
) -> Result<Vec<RedisResult>, Error>
pub fn execute( &self, command: &str, arguments: &[RedisParameter], ) -> Result<Vec<RedisResult>, Error>
Execute an arbitrary Redis command and receive the result.
Trait Implementations§
Source§impl Debug for Connection
impl Debug for Connection
Source§impl WasmResource for Connection
impl WasmResource for Connection
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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