On 1/21/11 3:20 PM, Ivan wrote:
Hello,

i have memcached 1.4.5 on Centos 5.5, my sets seem to expire (no
matter what i put as expire time, infinite or 5mins 1 hour etc) after
few seconds and my cache is not full
its not code problem since i've retested it with most basic example
like this ->
"<?php
$memcache_obj = new Memcache;
$memcache_obj->connect('127.0.0.1', 11211);
if ($memcache_obj->get('time') == "") {
         $date = date("H:i:s");
         $memcache_obj->set('time', $date, MEMCACHE_COMPRESSED, ');
}
echo "At ".date("H:i:s").", your key is ".$memcache_obj->get('time');
?>  "
Also restarting memcached didn't help.

From the documentation.

expire

Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).


--

Brian.
--------
http://brian.moonspot.net/

Reply via email to