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

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

CHANGES

0.5.0 (2017-02-08)

  • Added gets and cas commands

0.4.0 (2016-09-26)

  • Make max_size strict #14

0.3.0 (2016-03-11)

  • Dockerize tests

  • Reuse memcached connections in Client Pool #4

  • Fix stats parse to compatible more mc class software #5

0.2 (2015-12-15)

  • Make the library Python 3.5 compatible

0.1 (2014-06-18)

  • 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.5.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

aiomcache-0.5.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file aiomcache-0.5.0.tar.gz.

File metadata

  • Download URL: aiomcache-0.5.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiomcache-0.5.0.tar.gz
Algorithm Hash digest
SHA256 09a4e22689f3ff95da8989c3a61671118505ab8308a3dd18137d7f48b15d2bc2
MD5 3d751047a22fff4ef7d3b8d0982f15b2
BLAKE2b-256 a05f20865650655f3dc1fe0af5498a9d907fdfbc2d737bace495a969499840b3

See more details on using hashes here.

Provenance

File details

Details for the file aiomcache-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiomcache-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e903a1ecc7f07498efd32553be8d4634ed33160f6662e3cb0ab4c0f42a9c9c07
MD5 1e1932a9aa0269bfc15a4bf82ce0e90e
BLAKE2b-256 bdf2086ac8cb0543ad69bdb66573e4d387c9b343fc3985699ad8b93850b376a2

See more details on using hashes here.

Provenance

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