def flush(self, hard=False):
if not self.servers:<EOL><INDENT>return<EOL><DEDENT>if hard:<EOL><INDENT>self.client.flush_all()<EOL>self.reset_stats()<EOL><DEDENT>else:<EOL><INDENT>from uuid import uuid4<EOL>tag = uuid4().hex<EOL>if self.debug:<EOL><INDENT>tag = "<STR_LIT>" + tag<EOL><DEDENT>self.current = tag<EOL><DEDENT>
Drop existing entries from the cache.

        Args:
            hard (bool): If True, all current entries are flushed from the
                server(s), which affects all users. If False, only the local
                process is affected.