Python中使用Memcache
安装 python memcache 过程略
1 root@Veda:~# python 2 Python 2.7.2+ (default, Oct 4 2011, 20:03:08) 3 [GCC 4.6.1] on linux2 4 Type "help", "copyright", "credits" or "license" for more information. 5 >>> import memcache 6 >>> mc = memcache.Client(['127.0.0.1:12333']) 7 >>> mc.set("foo","bar") 8 True 9 >>> mc.get("foo") 10 'bar' 11 >>>