Move Redis functions to their own class