refactored redis cache, added mset()