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

A group of Redis commands related to Lists

See Also

Redis List Commands

Required Methods

Insert all the specified values at the head of the list stored at key

Return

the length of the list after the push operations.

See Also

https://redis.io/commands/lpush/

Removes and returns the first elements of the list stored at key.

Return

collection of popped elements, or empty collection when key does not exist.

See Also

https://redis.io/commands/lpop/

Implementors