Exemplo n.º 1
0
 def make_result(self, key, value):
     """
     Makes a single result which is then stored in the multi result object
     :param key: The actual key for the command
     :param value: The value passed (may be None)
     :return: A result object
     """
     v = OperationResult()
     v.key = key
     return v
Exemplo n.º 2
0
 def make_result(self, key, value):
     """
     Makes a single result which is then stored in the multi result object
     :param key: The actual key for the command
     :param value: The value passed (may be None)
     :return: A result object
     """
     v = OperationResult()
     v.key = key
     return v
 def _opres_common(self, err, resp):
     res = OperationResult()
     res.cas = resp.v.v0.cas
     res.rc = err
     self._add_response(resp, res)
     return res
 def _unlock_callback(self, instance, cookie, err, resp):
     res = OperationResult()
     res.rc = err
     self._add_response(resp, res)