inject redis dependency