3.安装Python memcached
下载地址:ftp://ftp.tummy.com/pub/python-memcached/python-memcached-1.53.tar.gz
解压,安装
在python中导入memcache模块就可以了
import memcache
4.例子:
#coding:utf-8
import memcache,time
mc=memcache.Client(['127.0.0.1:11211'],debug=0)
mc.set('foo','bar')
value=mc.get('foo')
print value