Check the memcache_set PHP docs - give it a NULL flag and specify your
$timeout (as a unix timestamp in the future) explicitly - or pass a timeout
of 0 for (never expire).

It may be that its expiring the moment its set.


On Tue, Aug 23, 2011 at 12:29 AM, 1989moni1989 <monika.mel...@gmail.com>wrote:

> Hello!
>
> I have a problem using Memcached. At first everything went fine but
> suddenly I found out, that the values I give to Memcached are not
> there after a page refresh.
>
> I call $oMemcache->set("variable", "value"); und then echo $oMemcache-
> >get("variable");
> The Output is 'value'. But after a page-refresh the value isn't there
> any more but the key is.
>
> Do you know what I do wrong?
>
> Monika

Reply via email to