python使用bmemcached操作memcached示例代码,,python使用bmem


python使用bmemcached操作memcached示例代码

#!/usr/bin/env pythonimport bmemcachedclient = bmemcached.Client(('ip:port'), 'user', 'passwd')print client.set('key', 'value11111111111')print client.get('key')

依赖于bmemcached(支持SASL扩展),下载链接https://github.com/jaysonsantos/python-binary-memcached, 可以下载zip包,然后通过python setup.py install来安装包

评论关闭