conditional redis support