Skip to content
Minimal asyncio memcached client
Python Makefile
Branch: master
Clone or download

Latest commit

dependabot-preview Bump flake8 from 3.8.1 to 3.8.2
Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.1 to 3.8.2.
- [Release notes](https://gitlab.com/pycqa/flake8/tags)
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.1...3.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit 4ae97e7 May 25, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
aiomcache Bump to 0.6.0 Dec 3, 2017
examples fix docstrings and tiny improvements Jun 29, 2014
tests Fix pool concurrency May 11, 2017
.coveragerc Dockerize Mar 11, 2016
.gitignore pyenv local configuration Apr 22, 2017
.pyup.yml Create .pyup.yml Dec 6, 2017
.travis.yml
CHANGES.txt
CONTRIBUTORS.txt Update CONTRIBUTORS.txt Jan 26, 2017
LICENSE.txt Update LICENSE.txt Jan 3, 2016
MANIFEST.in add manifest Mar 7, 2017
Makefile Reduced duplicated code after gets/cas code merge Jan 30, 2017
README.rst Fix working version based on readme & Add 3.6 Apr 22, 2017
requirements.txt Bump flake8 from 3.8.1 to 3.8.2 May 25, 2020
setup.cfg refactoring Jun 18, 2014
setup.py Bump to 0.6.0 Dec 3, 2017

README.rst

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

async def hello_aiomcache():
    mc = aiomcache.Client("127.0.0.1", 11211, loop=loop)
    await mc.set(b"some_key", b"Some value")
    value = await mc.get(b"some_key")
    print(value)
    values = await mc.multi_get(b"some_key", b"other_key")
    print(values)
    await mc.delete(b"another_key")

loop.run_until_complete(hello_aiomcache())

Requirements

You can’t perform that action at this time.