Skip to main content

Wrapper For Key-Value Database (Memcached, Redis, TokyoTyrant ...)

Project description

Example:

# test memcached
>>> from pywrapper.kv import create_wrapper
>>> w = create_wrapper('memcached', host='127.0.0.1', port=11211)
>>> w.set("name", "smallfish")
>>> print w.get("name")
smallfish
>>> w.update("name", "bigfish")
>>> print w.get("name")
bigfish
>>> w.delete("name")
>>> print w.get("name")
None

# test redis
>>> w = create_wrapper('redis', host='127.0.0.1', port=6379, db=1)

# test tokyotyrant
>>> w = create_wrapper('tokyotyrant', host='127.0.0.1', port=1978)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywrapper-0.1.tar.gz (943 Bytes view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page