| 1 | Sourcescip-debian debian aiomcache 0.8.2-2 aiomcache/Source.: aiomcachescip-debian debian aiomcache 0.8.2-2 aiomcache/ |
| 2 | Sectionscip-debian debian aiomcache 0.8.2-2 aiomcache/Section.: python |
| 3 | Maintainerscip-debian debian aiomcache 0.8.2-2 aiomcache/Maintainer.: Debian Python Team <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 4 | Uploadersscip-debian debian aiomcache 0.8.2-2 aiomcache/Uploaders.: Gianfranco Costamagna <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 5 | Build-Dependsscip-debian debian aiomcache 0.8.2-2 aiomcache/Build-Depends.: debhelper-compatscip-debian debian debhelper-compat . debhelper-compat/debhelper-compat# (= 13), dh-pythonscip-debian debian dh-python . dh-python/dh-python#, |
| 6 | python3-allscip-debian debian python3-all . python3-all/python3-all#, |
| 7 | python3-setuptoolsscip-debian debian python3-setuptools . python3-setuptools/python3-setuptools#, |
| 8 | python3-typing-extensionsscip-debian debian python3-typing-extensions . python3-typing-extensions/python3-typing-extensions# | python3scip-debian debian python3 . python3/python3#, |
| 9 | Standards-Versionscip-debian debian aiomcache 0.8.2-2 aiomcache/Standards-Version.: 4.7.4 |
| 10 | Vcs-Browserscip-debian debian aiomcache 0.8.2-2 aiomcache/Vcs-Browser.: https://salsa.debian.org/python-team/packages/aiomcachescip-debian . . . url/`https://salsa.debian.org/python-team/packages/aiomcache`. |
| 11 | Vcs-Gitscip-debian debian aiomcache 0.8.2-2 aiomcache/Vcs-Git.: https://salsa.debian.org/python-team/packages/aiomcache.git |
| 12 | Homepagescip-debian debian aiomcache 0.8.2-2 aiomcache/Homepage.: https://github.com/aio-libs/aiomcache/scip-debian . . . url/`https://github.com/aio-libs/aiomcache/`. |
| 13 | |
| 14 | Packagescip-debian debian aiomcache 0.8.2-2 aiomcache/python3-aiomcache#Package.: python3-aiomcachescip-debian debian python3-aiomcache . python3-aiomcache/python3-aiomcache# |
| 15 | Architecturescip-debian debian aiomcache 0.8.2-2 aiomcache/python3-aiomcache#Architecture.: all |
| 16 | Dependsscip-debian debian aiomcache 0.8.2-2 aiomcache/python3-aiomcache#Depends.: ${misc:Depends}, ${python3:Depends}, |
| 17 | Recommendsscip-debian debian aiomcache 0.8.2-2 aiomcache/python3-aiomcache#Recommends.: ${python3:Recommends} |
| 18 | Suggestsscip-debian debian aiomcache 0.8.2-2 aiomcache/python3-aiomcache#Suggests.: ${python3:Suggests} |
| 19 | Descriptionscip-debian debian aiomcache 0.8.2-2 aiomcache/python3-aiomcache#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` |