Add Redis caching support.

Compatible with the phpredis extension:
https://github.com/nicolasff/phpredis
Merge pull request #96 from Macil/redis

Add Redis caching support