Improved Redis helper module.