The lua-redis-parser library implements a thin and fast redis raw response parser that constructs corresponding lua data strucutres, as well as a function that constructs redis raw requests.
Documentation page: http://wiki.nginx.org/LuaRedisParser
Project homepage: https://github.com/agentzh/lua-redis-parser