downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Introduction> <memcache_debug
[edit] Last updated: Fri, 26 Apr 2013

view this page in

Memcached



Introduction> <memcache_debug
[edit] Last updated: Fri, 26 Apr 2013
 
add a note add a note User Contributed Notes Memcached - [3 notes]
up
2
mike at eastghost dot com
1 year ago
It's Feb 2012, and I just spent half a day tracing a weird and sporadic problem back to Memcached extension (vers 1.0.2), which would randomly return SYSTEM ERROR and fail to either get or put data into unix memcached.  Made one single change from Memcached extension back to Memcache extension and problem instantly vanished.

A year or three ago, I had changed from Memcache to Memcached for some other reason.

Now I'm on a mission to transcend the Memcache/Memcached fiasco.  I'm going to try APC's variable cache, and if that doesn't work better than just revert to using a key:value stash collection in Mongo.

Basically, the Memcache / Memcache driver fiasco, which has been going on apparently for years now, has ruined serious use of unix memcached on PHP...unless you're huge and can afford to create your own MemcacheX driver...
up
2
joelhy
1 year ago
For those confuse about the memcached extension and the memcache extension, the short story is that both of them are clients of memcached server, and the memcached extension offer more features than the memcache extension.
up
0
davidt
3 months ago
The module also supports SASL authentication, it just isn't documented sadly. You'll need to run the following code:

<?php
$m
= new Memcached();
$m->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
$m->setSaslAuthData("user-1", "pass");
?>

You need to enable the "memcached.use_sasl = 1" ini option for memcached in the php.ini file.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites