Minimal pure python tornado memcached client
Project description
Asyncmc
Asyncmc is a memcached client for Tornado web framework. Asyncmc work with python 2.7 and python 3
Quick links
Hello, Memcached
Here is a simple “Hello, Memcached” example for Tornado with Memcached.:
import tornado.ioloop
from tornado import gen
import asyncmc
loop = tornado.ioloop.IOLoop.instance()
@gen.coroutine
def out():
mc = asyncmc.Client(servers=['localhost:11211'], loop=loop)
yield mc.set(b"some_key", b"Some value")
value = yield mc.get(b"some_key")
print(value)
values = yield mc.multi_get(b"some_key", b"other_key")
print(values)
yield mc.delete(b"another_key")
loop.run_sync(out)
Requires
Installation
To install asyncmc, simply:
$ pip install asyncmc
LICENSE
Asyncmc is licensed under MIT.
CHANGES
0.5 (25-06-2015)
add support for noreply
the memcache protocol defines a ‘noreply’ optional parameter, which instructs the server to not send a reply. In heavy usage environments this can lead to significant performance improvements.
0.4 (19-06-2015)
New features keys may be “str” typed and extension method “prepend” is “+” on python
0.3 (16-06-2015)
New features new type of values “str” and extension method “append” is “+” on python
0.2 (15-06-2015)
New features “add”, “replace”, “append”, “prepend”
0.1 (10-06-2015)
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
File details
Details for the file asyncmc-0.5.tar.gz.
File metadata
- Download URL: asyncmc-0.5.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb6d001979c883a30920c08ee52e66d6d6d69af7e12fe94a5afafac4fbcc3b27
|
|
| MD5 |
8faf7b66ab9557319d39c59e9bde04f8
|
|
| BLAKE2b-256 |
b598681b0d82f937e4201489af89c78733e8691e3cb0f778c67fa3328c13acb4
|