2012年1月13日

memcached安装及测试

摘要: Memcache协议http://web2.0coder.com/archives/199python clients:http://sendapatch.se/projects/pylibmc/down fwom here: http://pypi.python.org/pypi/pylibmc#downloads介绍各个客户端,以及pylibmc的安装http://code.google.com/p/memcached/wiki/Clientshttp://iyouf.info/memcached-client-pylibmc.htmlpylibmc 安装过程pylibmc安装过程就像个递 阅读全文

posted @ 2012-01-13 01:33 cutepig 阅读(1989) 评论(0) 推荐(0) 编辑

twisted: echo server

摘要: from twisted.internet import protocol, reactorclass Echo(protocol.Protocol): def dataReceived(self, data): self.transport.write(data)class EchoFactory(protocol.Factory): def buildProtocol(self, addr): return Echo()reactor.listenTCP(1234, EchoFactory())reactor.run()run server:python testTwisted.pyrun 阅读全文

posted @ 2012-01-13 00:51 cutepig 阅读(339) 评论(0) 推荐(0) 编辑

导航