G
G
grabbee2019-12-12 15:05:39
symfony
grabbee, 2019-12-12 15:05:39

What is the name of the fixed expires for the cache?

If you add a value to the cache with expires of 10 seconds, and then update this value after 5 seconds, then it will last another 10 seconds. And if you continue to update until expires expires , then the value will remain forever.
For example, Memcached has such a bug/feature - if you set the OPT_BINARY_PROTOCOL option, then when you update an existing record, the originally set expires does not change . And no matter how much you update the record, it will disappear after 10 seconds. What is this cache behavior called?
Memcached Cache Adapter has now been added to Symphony - I did not find how to set this option there. But in principle, is there such behavior of the cache somewhere else?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question