by antirez · 15y ago · 0 comments
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.
Twitter's Redis-backed timeline storage is here, if anyone is interested: https://github.com/twitter/haplocheirus