Minimal pure python memcached client
Project description
memcached client for asyncio
asyncio (PEP 3156) library to work with memcached.
Getting started
The API looks very similar to the other memcache clients:
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
CHANGES
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.2.tar.gz
(7.9 kB
view details)
Built Distribution
aiomcache-0.2-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file aiomcache-0.2.tar.gz
.
File metadata
- Download URL: aiomcache-0.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c5926ff497521ed43e794d253db7b1e9566e432e94246243bb2c8f114bd885 |
|
MD5 | 0112f09892d039c6884fe30deee2e73e |
|
BLAKE2b-256 | 1bd8399ea688c97c1bdde87751cc812a83239a34f2e1ebcea8d2ab995866cb5d |
Provenance
File details
Details for the file aiomcache-0.2-py3-none-any.whl
.
File metadata
- Download URL: aiomcache-0.2-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ebe1232876708d36b8230dfb1387041f3e902b82cf2825552d4b9f17913f65 |
|
MD5 | 99d0d652d3e8119c3aae29338df6999e |
|
BLAKE2b-256 | e7797f2e0308560b621f458799d40b81dc96ba82c0c34f999c86998e48462129 |