code: def quit(self):
          
          cmd = b"quit\r\n"
          self._misc_cmd([cmd], b'quit', True)
          self.close()
docs: The memcached "quit" command.
  
          This will close the connection with memcached. Calling any other
          method on this object will re-open the connection, so this object can
          be re-used after quit.