<commit_before>memcached client for asyncio
============================

asyncio (PEP 3156) library to work with memcached.

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


Getting started
---------------

The API looks very similar to the other memcache clients:

.. code:: python

    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")
<commit_msg>Use async/await syntax in readme<commit_after>memcached client for asyncio
============================

asyncio (PEP 3156) library to work with memcached.

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


Getting started
---------------

The API looks very similar to the other memcache clients:

.. code:: python

    import asyncio
    import aiomcache

    loop = asyncio.get_event_loop()

    async def hello_aiomcache():
        mc = aiomcache.Client("127.0.0.1", 11211, loop=loop)
        yield from 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")

{'fraction_non_alphanumeric': 0.16184615384615383, 'fraction_numerical': 0.018461538461538463, 'mean_word_length': 3.0247524752475248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2785980', 'n_tokens_mistral': 568, 'n_tokens_neox': 536, 'n_words': 125}