shatzibtten
shatzibtten

Reputation: 27

Memcache return true after set, but item doesn't save

Use Memcache php class to interact with the memcached. At the beginning all works fine, but after hours of work, items doesn't save in memcached. Server has enough free memory and lifetime of item is correct. What's happened?

For example:

$storage->set($key, $value, false, $lifetime); //return true

But when i check it, memcached return NULL;

$storage->get($key); //return null

Upvotes: 0

Views: 1217

Answers (1)

Benjie
Benjie

Reputation: 7946

You say 'lifetime is correct' but are you sure - you may have set it to time()+$amount, which won't work after $amount of time has elapsed.

Upvotes: 0

Related Questions