Make redis cache timeout not trivial.
- Instead of using HASH for all the caches, use HASH + normal KEYs.
- HASH being used as a collection of all KEYs, this is useful when
  application wants to clear all keys.
Adjust the action order in Put function.
Merge pull request #674 from reterVision/master

Make redis cache timeout not trivial.