| 1 | Source: aiomcache |
| 2 | Section: python |
| 3 | Maintainer: Debian Python Team <[email protected]> |
| 4 | Uploaders: Gianfranco Costamagna <[email protected]> |
| 5 | Build-Depends: debhelper-compat (= 13), dh-python, |
| 6 | python3-all, |
| 7 | python3-setuptools, |
| 8 | python3-typing-extensions | python3, |
| 9 | Standards-Version: 4.7.4 |
| 10 | Vcs-Browser: https://salsa.debian.org/python-team/packages/aiomcache |
| 11 | Vcs-Git: https://salsa.debian.org/python-team/packages/aiomcache.git |
| 12 | Homepage: https://github.com/aio-libs/aiomcache/ |
| 13 | |
| 14 | Package: python3-aiomcache |
| 15 | Architecture: all |
| 16 | Depends: ${misc:Depends}, ${python3:Depends}, |
| 17 | Recommends: ${python3:Recommends} |
| 18 | Suggests: ${python3:Suggests} |
| 19 | Description: Minimal pure Python3 memcached client |
| 20 | memcached client for asyncio |
| 21 | The API looks very similar to the other memcache clients: |
| 22 | . |
| 23 | .. code:: python |
| 24 | . |
| 25 | import asyncio |
| 26 | import aiomcache |
| 27 | . |
| 28 | async def hello_aiomcache(): |
| 29 | mc = aiomcache.Client("127.0.0.1", 11211) |
| 30 | await mc.set(b"some_key", b"Some value") |
| 31 | value = await mc.get(b"some_key") |
| 32 | print(value) |
| 33 | values = await mc.multi_get(b"some_key", b"other_key") |
| 34 | print(values) |
| 35 | await mc.delete(b"another_key") |
| 36 | . |
| 37 | asyncio.run(hello_aiomcache()) |
| 38 | . |
| 39 | Version 0.8 introduces `FlagClient` which allows registering callbacks to |
| 40 | set or process flags. See `examples/simple_with_flag_handler.py` |