Adding flush and pattern erase for cache (memcached, file)