Skip to main content

Minimal pure python memcached client

Project description

memcached client for asyncio

asyncio (PEP 3156) library to work with memcached.

https://travis-ci.org/aio-libs/aiomcache.svg?branch=master

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

CHANGES

0.2 (12-15-2015)

  • Make the library Python 3.5 compatible

0.1 (06-18-2014)

  • Initial release

Project details


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

Uploaded Source

Built Distribution

aiomcache-0.2-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page