It's great in tandem with Redis. http://mikeferrier.com/2011/05/14/my-beautiful-dark-twisted-...
Can nginx do that? It sounds like this solution wouldn't really be able to, having to go through Lua and all, but nginx is an all-around very solid piece of software too, so I wonder...
Check this out for a look at Nginx's architecture: http://www.aosabook.org/en/nginx.html