I have had several issues with 3.x tree of pecl/memcache. I would either
stick with 2.x or switch to pecl/memcached. We are in the process of
doing the latter.
Brian.
--------
http://brian.moonspot.net/
On 1/28/10 5:02 AM, mathk wrote:
Hi,
I am using the 3.0.1 memcache php extension and a 1.4.2 memecache
server.
The architecture I am using is base on 2 server memcache.
Here the sample php code:
//----
function failed($host, $port)
{
var_dump($host . ' ' . $port);
}
$memcache = new Memcache;
$memcache->addServer('server1, 11211, true, 1, 1, 15, true, 'failed');
$memcache->addServer('server2', 11211, true, 1, 1, 15, true,
'failed');
var_dump($memcache->get('test_test_unittest_referer'));
//-----
When I execute this page I get false in the var_dump.
But the key seems to be alive in the server, see the following
session:
telnet server1 11211
Trying 192.168.0.202...
Connected to varan-02.lab.easyflirt.com.
Escape character is '^]'.
get test_test_unittest_referer
VALUE test_test_unittest_referer 1 164
a:3:{i:0;.....
END
Any idea?
Thanks