If you stop and start memcached, then run your code once, does the output of stats show two cmd_set operations?
(before) STAT cmd_set 0 (after) STAT cmd_set 1 ? If it says 2, then there is indeed something strange going on. Is your code inside of a (web) page with other stuff (and you're running it in a browser? Ajax firing it again maybe?) Make a simple test PHP file and run it on the command line and see if you get same. IOW, maybe your page is running twice but it's not obvious? Do you have XDebug installed? What IDE? On Fri, Jun 29, 2012 at 3:53 PM, Aaron Jackson <[email protected]>wrote: > Thanks for the reply. > > It does it twice regardless of whether I use addServer or just connect. >
