/// Deletes the provided keys and their associated values. Returns a count of the number of
/// key-value pairs deleted.
Deletes the provided keys and their associated values. Returns a count of the number of
key-value pairs deleted.
Deletes the provided keys and their associated values . Returns a count of the number of key - value pairs deleted .
pub async fn delete_multiple(&mut self, keys: Vec<impl Deref<Target = str>>) -> Result<usize> {
        let fut: JsFuture = self
            .inner
            .delete_multiple_internal(
                keys.into_iter()
                    .map(|key| JsValue::from(key.deref()))
                    .collect(),
            )?
            .into();
        fut.await
            .and_then(|jsv| {
                jsv.as_f64()
                    .map(|f| f as usize)
                    .ok_or_else(|| JsValue::from("Promise did not return number"))
            })
            .map_err(Error::from)
    }
pub async fn delete_multiple ( & mut self , keys : Vec < impl Deref < Target = str > > ) -> Result < usize > { let fut : JsFuture = self . inner . delete_multiple_internal ( keys . into_iter ( ) . map ( | key | JsValue :: from ( key . deref ( ) ) ) . collect ( ) , ) ? . into ( ) ; fut . await . and_then ( | jsv | { jsv . as_f64 ( ) . map ( | f | f as usize ) . ok_or_else ( | | JsValue :: from ( " " ) ) } ) . map_err ( Error :: from ) }
Deletes the provided keys and their associated values.
Deletes the provided keys and their associated values .
&mut self
keys
Vec<impl Deref<Target = str>>