Answer the question
In order to leave comments, you need to log in
Why is memcahce php dumping data?
I checked, I
connect like this
$mem = new Memcache();
$mem->connect('127.0.0.1', 11211);
$mem->set('test'.rand(10000000), rand(10000000), false, 600);
$stats = $mem->getStats();
echo 'Capacity: ' . round((real) $stats["bytes"]/(1024*1024), 3) . 'MB/' . round((real) $stats["limit_maxbytes"]/(1024*1024), 3) . ' MB';
<?php
$m = new Memcached;
$m->addServer('127.0.0.1', 11211);
if (!$m->get('key')) {
$m->set('key', 1);
echo 'flush';
} else {
var_dump($m->get('key'));
}
Answer the question
In order to leave comments, you need to log in
What is a full reset?
Then when is it?
You have a lifetime set for 10 minutes, after 10 minutes everything dies. What's wrong?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question