本文整理汇总了Python中pykt.KyotoTycoon.remove_bulk方法的典型用法代码示例。如果您正苦于以下问题:Python KyotoTycoon.remove_bulk方法的具体用法?Python KyotoTycoon.remove_bulk怎么用?Python KyotoTycoon.remove_bulk使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pykt.KyotoTycoon
的用法示例。
在下文中一共展示了KyotoTycoon.remove_bulk方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_remove_bulk_atomic
# 需要导入模块: from pykt import KyotoTycoon [as 别名]
# 或者: from pykt.KyotoTycoon import remove_bulk [as 别名]
def test_remove_bulk_atomic():
db = KyotoTycoon()
db.open()
ret = db.set_bulk(d2, atomic=True)
ok_(ret == 2)
ret = db.remove_bulk(d2.keys(), atomic=True)
ok_(ret == 2)
ret = db.get("あいうえお")
ok_(ret == None)
db.close()
示例2: test_remove_bulk_utf8
# 需要导入模块: from pykt import KyotoTycoon [as 别名]
# 或者: from pykt.KyotoTycoon import remove_bulk [as 别名]
def test_remove_bulk_utf8():
db = KyotoTycoon()
db.open()
ret = db.set_bulk(d2)
ok_(ret == 2)
ret = db.remove_bulk(d2.keys())
ok_(ret == 2)
ret = db.get("あいうえお")
ok_(ret == None)
db.close()
示例3: test_remove_bulk
# 需要导入模块: from pykt import KyotoTycoon [as 别名]
# 或者: from pykt.KyotoTycoon import remove_bulk [as 别名]
def test_remove_bulk():
db = KyotoTycoon()
db.open()
ret = db.set_bulk(d)
ok_(ret == 2)
ret = db.remove_bulk(d.keys())
ok_(ret == 2)
ret = db.get("A")
ok_(ret == None)
db.close()
示例4: test_remove_bulk_with_db
# 需要导入模块: from pykt import KyotoTycoon [as 别名]
# 或者: from pykt.KyotoTycoon import remove_bulk [as 别名]
def test_remove_bulk_with_db():
db = KyotoTycoon("test")
db.open()
db.remove_bulk(d.keys())
ok_(False)
示例5: test_err_type
# 需要导入模块: from pykt import KyotoTycoon [as 别名]
# 或者: from pykt.KyotoTycoon import remove_bulk [as 别名]
def test_err_type():
db = KyotoTycoon()
db.open()
ret = db.remove_bulk(d)
示例6: test_err_open
# 需要导入模块: from pykt import KyotoTycoon [as 别名]
# 或者: from pykt.KyotoTycoon import remove_bulk [as 别名]
def test_err_open():
db = KyotoTycoon()
ret = db.remove_bulk(d.keys())