本文整理汇总了Python中couchbase._libcouchbase.Connection.append_multi方法的典型用法代码示例。如果您正苦于以下问题:Python Connection.append_multi方法的具体用法?Python Connection.append_multi怎么用?Python Connection.append_multi使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类couchbase._libcouchbase.Connection
的用法示例。
在下文中一共展示了Connection.append_multi方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: append_multi
# 需要导入模块: from couchbase._libcouchbase import Connection [as 别名]
# 或者: from couchbase._libcouchbase.Connection import append_multi [as 别名]
def append_multi(self, keys, ttl=0, format=None):
"""Append to multiple keys.
Multi variant of :meth:`append`
.. seealso:: :meth:`append`, :meth:`set_multi`, :meth:`set`
"""
return _Base.append_multi(self, keys, ttl=ttl, format=format)
示例2: append_multi
# 需要导入模块: from couchbase._libcouchbase import Connection [as 别名]
# 或者: from couchbase._libcouchbase.Connection import append_multi [as 别名]
def append_multi(self, keys, ttl=0, format=None,
persist_to=0, replicate_to=0):
"""Append to multiple keys.
Multi variant of :meth:`append`.
.. warning::
If using the `Item` interface, use the :meth:`append_items`
and :meth:`prepend_items` instead, as those will automatically
update the :attr:`couchbase.items.Item.value` property upon
successful completion.
.. seealso:: :meth:`append`, :meth:`set_multi`, :meth:`set`
"""
return _Base.append_multi(self, keys, ttl=ttl, format=format,
persist_to=persist_to,
replicate_to=replicate_to)