a simple rewrite version of redis with addition of some new datastructures and functions