Make redis optional.