refactoring, putting a user cache into redis