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://codercto.com/soft/d/12567.html

Beginning Apache Struts

Beginning Apache Struts

Arnold Doray / Apress / 2006-02-20 / USD 44.99

Beginning Apache Struts will provide you a working knowledge of Apache Struts 1.2. This book is ideal for you Java programmers who have some JSP familiarity, but little or no prior experience with Ser......一起来看看 《Beginning Apache Struts》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密
SHA 加密

SHA 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换