Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is the expiration time updated in memcached after an increment?

When you put a value in memcached, you can set an expiration time.

However, when you increment a value you can not (at least not from PHP) set a new expiration time.

My question: Is the expiration time reset on increment to it's initial value? Or it it unchanged? Or is there another way to regenerate the expiration time?

Both the memcache documentation is vague about this, as well as the PHP documentation

like image 521
Toad Avatar asked Sep 10 '10 12:09

Toad


1 Answers

I just needed know this as well. A little experiment can tell us: expiration time is NOT updated after an increment. That's it.

like image 64
KailZhang Avatar answered Oct 19 '22 11:10

KailZhang