本文整理汇总了Python中memcached.helper.data_helper.MemcachedClientHelper.standalone_moxi_client方法的典型用法代码示例。如果您正苦于以下问题:Python MemcachedClientHelper.standalone_moxi_client方法的具体用法?Python MemcachedClientHelper.standalone_moxi_client怎么用?Python MemcachedClientHelper.standalone_moxi_client使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类memcached.helper.data_helper.MemcachedClientHelper
的用法示例。
在下文中一共展示了MemcachedClientHelper.standalone_moxi_client方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_moxi_ops
# 需要导入模块: from memcached.helper.data_helper import MemcachedClientHelper [as 别名]
# 或者: from memcached.helper.data_helper.MemcachedClientHelper import standalone_moxi_client [as 别名]
def test_moxi_ops (self):
tasks = self.run_ops()
for bucket in self.buckets:
try:
self._run_moxi(self.master, bucket)
moxi_client = MemcachedClientHelper.standalone_moxi_client(self.moxi_server, bucket,
moxi_port=self.moxi_port)
self.sleep(30)
self.cluster.load_gen_docs(self.master, bucket.name, self.gen_load,
bucket.kvs[1],"create", proxy_client=moxi_client)
if self.ops in ['update', 'delete', 'read']:
self.cluster.load_gen_docs(self.master, bucket.name, self.gen_load,
bucket.kvs[1], self.ops, proxy_client=moxi_client)
finally:
self._stop_moxi()
for task in tasks:
task.result()
self.verify_cluster_stats(self.servers[:self.nodes_init])