Skip to content

List Commands

List commands allow you to store string elements in lists, supporting insertion and popping from both ends. Lists are ordered and can contain duplicate elements.

Command List

Use Cases

List commands are ideal for message queues, timelines, recent browsing records, and other scenarios. The combination of LPUSH and RPOP (or RPUSH and LPOP) can implement queue functionality, while the combination of LPUSH and LPOP can implement stack functionality.

For detailed usage and parameters of each command, please refer to the individual command documentation linked above.

Released under the GPL-3.0 License.