This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Minimal pure python tornado memcached client

Project Description
Asyncmc
========

.. image:: https://travis-ci.org/ErDmKo/asyncmc.svg?branch=master

`Asyncmc <https://github.com/ErDmKo/asyncmc>`_ is a memcached client for `Tornado <https://github.com/tornadoweb/tornado>`_ web framework.
Asyncmc work with python 2.7 and python 3

Quick links
------------

* `Source (github) <https://github.com/ErDmKo/asyncmc>`_

* `License <https://raw.githubusercontent.com/ErDmKo/asyncmc/master/LICENSE.txt>`_

* `Examples <https://github.com/ErDmKo/asyncmc/blob/master/examples>`_

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
---------


+ `Tornado <https://github.com/tornadoweb/tornado>`_
+ `Memcached <http://memcached.org/>`_

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


To install asyncmc, simply:

.. code-block:: bash

$ pip install asyncmc

LICENSE
--------

Asyncmc is licensed under MIT.

CHANGES
========

0.6.1 (1-10-2015)
---------------

- Bug fix and preparing to reconnect dead connections by errors

0.6 (2-07-2015)
---------------

- New feature Multiply server connection

0.5.1 (27-06-2015)
------------------

- Documentation improve

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
Release History

Release History

This version
History Node

0.6.5

History Node

0.6.4

History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6

History Node

0.5.2

History Node

0.5.1

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
asyncmc-0.6.5.tar.gz (11.9 kB) Copy SHA256 Checksum SHA256 Source Jun 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting