Optimize flush all method of redis cache