More code cleaning on redis