added redis as an option in the factory

Not sure why redis was left out. So I added it.
Also the database query results dont seem to be serialized while storing. Is that a known issue?

Thanks for the code :)