Skip to content

Instantly share code, notes, and snippets.

🎯
eggache ? yes, eggache !

fengyun.rui rfyiamcool

View GitHub Profile
@rfyiamcool
rfyiamcool / redis_asyncio.py
Created May 4, 2017 — forked from yihuang/redis_asyncio.py
benchmark gevent vs asyncio on python3.4
View redis_asyncio.py
import asyncio
import hiredis
d = {}
def process(req):
cmd = req[0].lower()
if cmd==b'set':
d[req[1]] = req[2]
return b"+OK\r\n"
You can’t perform that action at this time.