fallback to in memory if redis is not available
fallback to in memory if redis is not available