PHP memcache — get the remaining time before deletion of record?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/code-flow.club/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 views
Or adding entries in memcache.

Perhaps there is not a documented method to retrieve this value?


Of course as an option, you can create additional field where keep accurate time record was added, but this is an extreme case.
by | 9 views

2 Answers

0 like 0 dislike
In memcached, when the memory is full, older objects are automatically deleted, so provide the time of removal — it is rather from the field of probability theory.
by
0 like 0 dislike
I have done so. In addition to the element with key "page_hash" with the page additional element with the key "page_hash.time" made, which sits right timestamp. But it is for manual processing, I memcache given a lot of memory, because the elements are displaced therefrom.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
asked May 20, 2019 by McMike
110,608 questions
257,186 answers
0 comments
24,712 users