Consider this:
// T = 0 $item = $pool->getItem('key'); $item->set('value'); $item->expiresAfter(3600); $pool->save($item); // T = 600 $item = $pool->getItem('key'); $item->set('foobar'); $pool->save($item);
For how long is the item still in cache? The way I see it there are three options:
$item->expiresAfter() was never called.I believe that option A is preferable. What do you think? What was intended?
// T = 0 $item = $pool->getItem('key'); $item->set('value'
); $item->expiresAt(new \DateTime('+2seconds')); $pool->save($item);
// T = 5$item = $pool->getItem('key'); $item->set('foobar'); $pool->save($item);
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/569688E6.7090903%40beccati.com.
For more options, visit https://groups.google.com/d/optout.