Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/msabramo/gmemcache

A gevent-compatible Memcached Python client with binary protocol and consistent hashing support
https://github.com/msabramo/gmemcache

Last synced: 15 days ago
JSON representation

A gevent-compatible Memcached Python client with binary protocol and consistent hashing support

Awesome Lists containing this project

README

        

gmemcache
=========

Installation
------------

.. code-block:: bash

$ pip install Cython
$ pip install gmemcache

Usage
-----

.. code-block:: python

>>> from gmemcache import MemcacheConnection
>>> client = MemcacheConnection(['127.0.0.1:11211'])
>>> client.is_connected()
True
>>> client.set_multi({'key1': 'value1', 'key2': 'value2'})
True
>>> client.get_multi(['key1', 'key2', 'key3'])
{'key1': u'value1', 'key2': u'value2'}
>>> client.close()