Use same method for redis as postgres for pre-deploy