Skip to main content
Help us improve Python packaging – donate today!

Minimal pure python tornado memcached client

Project Description

# Asyncmc

![Build state](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

```python

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:

```bash

$ pip install asyncmc

```

# LICENSE

Asyncmc is licensed under MIT.

Release history Release notifications

This version
History Node

0.6.7

History Node

0.6.6

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 the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
asyncmc-0.6.7.tar.gz (12.2 kB) Copy SHA256 hash SHA256 Source None Jan 18, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page