I know I'm late to the party, but what's the use-case for passing a default value to the get method?
If we're using a cache isn't generating/getting the value expensive? It seems to encourage something boneheaded like: $default = someExpensiveOperation(); $myValue = $myCache->get('foo', $default); I could understand passing a callable that would set the value for a cache miss... -- 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+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/c5c2a162-2b04-4a70-a5d4-966099831940%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.