@classmethod<EOL><INDENT>def delegate(cls, method, conflict=None, *args, **kwargs):<DEDENT>
if cls.queue.active:<EOL><INDENT>action = WriteAction(method, *args, **kwargs)<EOL>if conflict:<EOL><INDENT>logger.warn('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(action))<EOL><DEDENT>cls.queue.push(action)<EOL><DEDENT>else:<EOL><INDENT>method(*args, **kwargs)<EOL><DEDENT>
Execute or queue a database action. Variable positional and keyword
        arguments are passed to the provided method.

        :param function method: Method to execute or queue
        :param bool conflict: Potential conflict between cache_sandbox and backend,
            e.g., in the event of bulk updates or removes that bypass the
            cache_sandbox