6 ms·
What does LPUSHX/RPUSHX do differently?
by dschn 16y ago
What does LPUSHX/RPUSHX do differently?
- antirez 16y agoPush if list exists. This are the operations that are at the base of the twitter Redis caching implementation. This operations are useful every time you want to use Redis for caching timelines, as the idea is: if this user is already in cache (at least a single item exists) then push against the cache, otherwise not.
- dschn 16y agoAh, thanks for the explanation. I'm actually exploring Redis for storing timelines! Twitter's Redis-backed timeline storage is here, if anyone is interested: https://github.com/twitter/haplocheirus https://github.com/twitter/haplocheirus