On Sun, Mar 15, 2009 at 8:49 PM, meppum <[email protected]> wrote: > > The script: > try: > import cmemcache as memcache > except ImportError: > import memcache > > c = memcache.Client(["127.0.0.1:11211"]) > c.set('abc', '123') > c.disconnect_all() > > for i in range(20000): > if i % 1000 == 0: > print "iteration: %s" % i > > c = memcache.Client(["127.0.0.1:11211"]) > c.get('abc') > c.disconnect_all() >
This script will not run multiple memcached requests in parallel. Is that what you were going for? -- David blog: http://www.traceback.org twitter: http://twitter.com/dstanek
