I am testing from CLI for now. On the first execution with memcached just
being restarted, cmd_set is 1 after the set, but running the script after
this results in cmd_set being incremented in twos.
eg..
first run - cmd_set = 1
second - cmd_set = 3
third - cmd_set = 5
and it literally is just one set operation in a blank file. "php test.php"
from the terminal.
I did a few tests before and check this out...
<?php
$s = fsockopen('localhost', 11211);
fwrite($s, "set key 0 0 5\r\nhello\r\n");
fclose($s);
exit();
results in memcached saying:
<31 new auto-negotiating client connection
31: Client using the ascii protocol
<31 set key 0 0 5
>31 STORED
<31 connection closed.
<31 new auto-negotiating client connection
31: Client using the ascii protocol
<31 set key 0 0 5
>31 STORED
<31 connection closed.
Am i going in insane?
Thanks,
Aaron