Mlpop
Bun

method

RedisClient.lpop

key: KeyLike
): Promise<null | string>;

Remove and get the first element in a list

@param key

The list key

@returns

Promise that resolves with the first element, or null if the list is empty

key: KeyLike,
count: number
): Promise<null | string[]>;

Remove and get the first count elements in a list

@param key

The list key

@returns

Promise that resolves with a list of elements, or null if the list doesn't exist

Referenced types

type KeyLike = string | ArrayBufferView | Blob