Simon Willison’s Weblog

Subscribe

Items tagged redis, blocking in 2010

Filters: Year: 2010 × redis × blocking × Sorted by date


BLPOP and BRPOP in Redis. Added over Christmas—Redis now has blocking list pop operations. This means you can use Redis to drive a queue server without the need for polling—simply BLPOP against a key and, if it’s empty, your client will block until another client pushes an item on to the list. Multiple clients can block against the same key and only the first client will return when an item becomes available. # 7th January 2010, 10:50 pm

Types

Years

Months

Tags