pub trait ListCommands {
fn lpush<'life0, 'async_trait, K, E>(
&'life0 self,
key: K,
elements: E
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
where
K: Into<BulkString> + Send,
E: IntoArgs + Send,
K: 'async_trait,
E: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait;
fn lpop<'life0, 'async_trait, K, E>(
&'life0 self,
key: K,
count: usize
) -> Pin<Box<dyn Future<Output = Result<Vec<E>>> + Send + 'async_trait>>
where
K: Into<BulkString> + Send,
E: FromValue,
K: 'async_trait,
E: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Removes and returns the first elements of the list stored at key.
collection of popped elements, or empty collection when key does not exist.
https://redis.io/commands/lpop/