Thanks for the reply Larry,

I'd like to report that there has been great collaboration with the
php-cache implementers around the test suite, that is now used as a
reference by both php-cache and Symfony:
https://github.com/php-cache/integration-tests/

The good thing is that all these small implications of the PSR can now be
checked easily.
It would maybe be worth mentioning that somewhere.


> - What happens when a value cannot be *un*serialized? (return a miss)
>> Should we allow a __PHP_Incomplete_Class? (no)
>>
>
> If a complete and valid value cannot be returned in a type-safe manner for
> any reason, it's a cache miss.  I'd say you're correct per spec.
>

This has come very late to my mind and in fact its not yet merged into
Symfony nor in the reference test suite. I really doubt that other
implementations deal with unserialize failures today, esp. the
__PHP_Incomplete_Class issue.
An explicit reminder here might be a good idea (also because it's a hard to
test behavior).



>
> - What happens when an already expired or negative lifetime item is saved?
>> (invalidate any existing value & return true)
>>
>
> I'd say this is correct. [...]


This one could be mentioned, at least it came late to us while working on
PSR-6... :)



> - What's the rationale for having reserved characters in keys, and why
>> these ones specifically? (no idea)
>>
>
> Reserved for usage in future extensions, like namespacing or tags. Those
> seemed like the most likely ones we'd want to use.
>

FYI, we implemented tags in Symfony, and namespacing is ready also. We
didn't require using any special characters in userland/public keys, but we
did use reserved chars internally, so good for me.

Nicolas

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CAOWwgpkP7YGw84dof01x6Xuo08xabeh5XWRs1x7auxQiOryY5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to