読者です 読者をやめる 読者になる 読者になる

python-tokyotyrant

TokyoTyrant Python
from tokyotyrant import open

tt = open("127.0.0.1", 1978)
tt.put("spam", "SPAM")
assert tt.get("spam") == "SPAM"

for key in ("spam egg", "spam spam egg", "ham egg"):
    tt.put(key, "YUMMY!")

tt.fwmkeys("spam")
# ["spam egg", "spam spam egg"]

tt.get_multi(["spam egg", "ham egg"])
# {'spam egg': 'YUMMY!', 'ham egg': 'YUMMY!'}