Skip to content
Sections
>> Trisquel >> Paketler >> ecne (12.0LTS) >> python >> python3-aiomcache
[  ecne  ] [  xolotl  ]
[ Kaynak: aiomcache  ]

Paket: python3-aiomcache (0.8.1-2)

Minimal pure python memcached client

memcached client for asyncio The API looks very similar to the other memcache clients:

 .. code:: python

    import asyncio
    import aiomcache

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

    asyncio.run(hello_aiomcache())

. Version 0.8 introduces `FlagClient` which allows registering callbacks to set or process flags. See `examples/simple_with_flag_handler.py`

python3-aiomcache ile İlgili Diğer Paketler

  • bağımlılıklar
  • tavsiye edilen
  • önerilen
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-typing-extensions
    Backported and Experimental Type Hints for Python
    ya da python3 (>> 3.11)
    interactive high-level object-oriented language (default python3 version)

python3-aiomcache indir

Tüm mevcut mimariler için indir
Mimari Paket Boyutu Kurulu Boyut Dosyalar
all 9,7 kB48 kB [dosya listesi]