Skip to content

Instantly share code, notes, and snippets.

eggache ? yes, eggache !

fengyun.rui rfyiamcool

View GitHub Profile
rfyiamcool /
Created May 4, 2017 — forked from yihuang/
benchmark gevent vs asyncio on python3.4
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.