asyncio 的 memcached​ 客户端 aiomcache

码农软件 · 软件分类 · 常用工具包 · 2019-08-17 14:41:26

软件介绍

aiomcache 是极简的 asyncio memcached 客户端。   

API

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")
loop.run_until_complete(hello_aiomcache())

本文地址:https://www.codercto.com/soft/d/12567.html

Web Applications (Hacking Exposed)

Web Applications (Hacking Exposed)

Joel Scambray、Mike Shema / McGraw-Hill Osborne Media / 2002-06-19 / USD 49.99

Get in-depth coverage of Web application platforms and their vulnerabilities, presented the same popular format as the international bestseller, Hacking Exposed. Covering hacking scenarios across diff......一起来看看 《Web Applications (Hacking Exposed)》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具