improve redis persistence