Skip to main content

A pure python asyncio memcached client, fork from aiomcache.

Project description

A pure-Python(3.7+) asyncio memcached client, fork from aiomcache.

https://travis-ci.org/rexzhang/aiomemcached.svg?branch=master https://img.shields.io/coveralls/rexzhang/aiomemcached.svg?branch=master https://img.shields.io/pypi/v/aiomemcached.svg https://img.shields.io/pypi/pyversions/aiomemcached.svg https://img.shields.io/pypi/dm/aiomemcached.svg

Install

pip install -U aiomemcached

Usage

A simple example.

import asyncio
import aiomemcached


async def example():
    c = aiomemcached.Client()
    await c.set(b"some_key", b"Some value")
    value = await c.get(b"some_key")
    print(value)
    values = await c.multi_get(b"some_key", b"other_key")
    print(values)
    await c.delete(b"another_key")


asyncio.run(example())

pytest

python -m pytest --cov=. --cov-report html

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

AioMemcached-0.7.0.tar.gz (11.0 kB view hashes)

Uploaded Source

Built Distribution

AioMemcached-0.7.0-py2.py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 2 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