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

High Performance Python

High Performance Python

Andrew Lewis / O'Reilly Media, Inc. / 2010-09-15 / USD 34.99

Chapter 1. Introduction Section 1.1. The High Performance Buzz-word Chapter 2. The Theory of Computation Section 2.1. Introduction Section 2.2. Problems Section 2.3. Models of Computati......一起来看看 《High Performance Python》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码