Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/msabramo/gmemcache
- Owner: msabramo
- License: other
- Created: 2014-03-02T18:43:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-02T18:58:42.000Z (almost 11 years ago)
- Last Synced: 2024-12-03T21:58:08.564Z (28 days ago)
- Language: Python
- Homepage:
- Size: 130 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
gmemcache
=========Installation
------------.. code-block:: bash
$ pip install Cython
$ pip install gmemcacheUsage
-----.. 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()