write redis on background