Added optional public_key_fn to RedisCache

Backward compatible change.
It is good to have a chance to namespace keys in redis...
( http://www.quora.com/What-are-5-mistakes-to-avoid-when-using-Redis )