Python asyncio 的 Redis 客户端 asyncio-redis

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

软件介绍

asyncio-redis 是 Python asyncioRedis 客户端 (PEP 3156)。这个 Redis 库是完全异步的,Reids 服务器非阻塞客户端,依赖于 asyncio,所以要求 Python 3.3. 或者 Python 3.4。

连接示例:

import asyncio
import asyncio_redis
@asyncio.coroutine
def example():
    # Create Redis connection
    connection = yield from asyncio_redis.Connection.create(host='localhost', port=6379)
    # Set a key
    yield from connection.set('my_key', 'my_value')
    # When finished, close the connection.
    connection.close()
if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(example())

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

Flexible Pattern Matching in Strings

Flexible Pattern Matching in Strings

Gonzalo Navarro、Mathieu Raffinot / Cambridge University Press / 2007-7-30 / USD 64.99

String matching problems range from the relatively simple task of searching a single text for a string of characters to searching a database for approximate occurrences of a complex pattern. Recent ye......一起来看看 《Flexible Pattern Matching in Strings》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具