Merge pull request #4 from bar/fix-travis

Tell Travis that Redis server is needed.
Merge pull request #2 from bar/patch

Remove extra spaces.
Use array map for simple stuff.