Gevent ready memcache client?

 ̄綄美尐妖づ 提交于 2020-01-15 10:57:28

问题


I see that there's a port of memcache client for gevent (https://github.com/hjlarsson/gevent-memcache), but it has not been updated since August 2010. Do you guys have any recommendation on a memcache client for using in gevent?


回答1:


Found one, released and maintained by the guys at www.esn.me

https://github.com/esnme/ultramemcache

They also have a faster JSON decoder as well, coded in C with python binding.




回答2:


There is the python-ultramemcache that give the same interface as python-memcache, but use ultramemcache. So you only need to change your import if you already use python-memcache:

http://pypi.python.org/pypi/python-ultramemcached/0.0.2

To install:

pip install python-ultramemcache

Then in your code:

import ultramemcache as memcache


来源:https://stackoverflow.com/questions/8207191/gevent-ready-memcache-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!