Question:
How to extend the life of an element in memcache
? Have an idea to do replace
with a new lifetime value, is there any other way to do this? I would like to hear someone else's opinion.
Answer:
When using the memcache
extension, only replace
. The memcached
extension has a touch
method that allows you to set a new storage time.