Optimize flush all method of memcached cache