Struct spin_sdk::redis::Connection
source · 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 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