move redis adapter to its own module