redis-cli RPOP queue

Category: Databases & SQL

redis-cli RPOP queue

Remove and return the last list item

Pops from the tail; paired with LPUSH it forms a FIFO queue. BLPOP blocks until an item appears, which is handy for workers. Related: LPOP.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.