I have testMemcached.php code below.

<?php 
 include_once "common.php";
 include_once "api.php"; 
 class TestMemcached extends API{  
   function impl(){ 
        $m = $this->getMem(); 
        $stats = $m->getStats(); 
        var_dump($stats); 
        $m->add("Key","test"); 
        echo "Value:".$m->get("Key"); 
   } 
 } 
 $api = new TestMemcached(); 
 $api->go();

I run testMemcached.php in the web browser. I get bool(false) Value:

 I use telnet 127.0.0.1 11211 to test memcached function I found the addand set 
is not working.

Trying 127.0.0.1... 
Connected to 127.0.0.1. 
Escape character is '^]'. 
set test testValue 
ERROR 
add test testValue 
ERROR 
get test 
END

How to fix it?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to