config redis and resque