Ben memcached hayal kırıklığına uğrattı. Onunla çalışmak çok kolay gelen olmuştur.
Örnek:
$memcache = new Memcache;
$memcache->connect('127.0.0.1', 11211) or die ("Could not connect");
$memcache->set('id', $array, 120);
Ben yaklaşık bir saat önce bu set - ve hala orada! Manuel parametre olarak "şimdiki zaman itibaren saniye sayısını" kullanabilirsiniz diyor. Peki neden son kullanma sayılır?
Another thing that bugs me is that sometimes values are not written. It all is pretty much random. "argyleblanket" mentioned running into those problems in the php manual: http://www.php.net/manual/en/memcache.set.php#84032 I have implemented that fallback on all my replace() calls as well. I don't get why it won't just work on the first call. Why offer a replace() function if it's in the stars if it replaces the content or not?
The question is why would I trust such a software to do anything of importance and is there a way to make it more reliable?