Support Redis as cache backend.

Fixes #2.