This commit allows Redis support to flush lazily (already supported) or immediately (new). Fixes gh-273