Minimal pure python memcached client
Project description
memcached client for asyncio
============================
asyncio (PEP 3156) library to work with memcached.
.. image:: https://travis-ci.org/aio-libs/aiomcache.svg?branch=master
:target: https://travis-ci.org/aio-libs/aiomcache
Getting started
---------------
The API looks very similar to the other memcache clients:
.. code:: python
import asyncio
import aiomcache
loop = asyncio.get_event_loop()
@asyncio.coroutine
def hello_aiomcache():
mc = aiomcache.Client("127.0.0.1", 11211, loop=loop)
yield from mc.set(b"some_key", b"Some value")
value = yield from mc.get(b"some_key")
print(value)
values = yield from mc.multi_get(b"some_key", b"other_key")
print(values)
yield from mc.delete(b"another_key")
loop.run_until_complete(hello_aiomcache())
Requirements
------------
- Python >= 3.3
- asyncio https://pypi.python.org/pypi/asyncio/
CHANGES
=======
0.3.0 (03-11-2016)
----------------
- Dockerize tests
- Reuse memcached connections in Client Pool #4
- Fix stats parse to compatible more mc class software #5
0.2 (12-15-2015)
----------------
- Make the library Python 3.5 compatible
0.1 (06-18-2014)
----------------
- Initial release
============================
asyncio (PEP 3156) library to work with memcached.
.. image:: https://travis-ci.org/aio-libs/aiomcache.svg?branch=master
:target: https://travis-ci.org/aio-libs/aiomcache
Getting started
---------------
The API looks very similar to the other memcache clients:
.. code:: python
import asyncio
import aiomcache
loop = asyncio.get_event_loop()
@asyncio.coroutine
def hello_aiomcache():
mc = aiomcache.Client("127.0.0.1", 11211, loop=loop)
yield from mc.set(b"some_key", b"Some value")
value = yield from mc.get(b"some_key")
print(value)
values = yield from mc.multi_get(b"some_key", b"other_key")
print(values)
yield from mc.delete(b"another_key")
loop.run_until_complete(hello_aiomcache())
Requirements
------------
- Python >= 3.3
- asyncio https://pypi.python.org/pypi/asyncio/
CHANGES
=======
0.3.0 (03-11-2016)
----------------
- Dockerize tests
- Reuse memcached connections in Client Pool #4
- Fix stats parse to compatible more mc class software #5
0.2 (12-15-2015)
----------------
- Make the library Python 3.5 compatible
0.1 (06-18-2014)
----------------
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiomcache-0.3.0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for aiomcache-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1468c4f815898617bd13e35e5d1c732d3424fd55ffc3238da75f504f577cca38 |
|
MD5 | b81681d295020a4ba2c3e5f5b2fd96e0 |
|
BLAKE2b-256 | 4be8bf06470fdc9353ba6ffb012cde3eb3279ee5d1a1d8699b03ef2611ccb822 |