8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think the attached patch would be a nice improvement on top of symfony#42997
Please don't merge, that's for discussion (Tests don't pass)
Basically, this delegate the serialization of tags to the wrapper adapters instead of letting TagAwareAdapter manage that part.
Sorry, something went wrong.
ca8e161
b2ef579
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Clearing tags doesn't make sense, to me. Let me know if you think I'm wrong.
Second read: not clearing tags was on purpose. Tags could be shared among several item pools and clearing them for one pool would break this use case. If one wants to clear tags, they should call the method on the tags pool directly.
The return value only needs confirmation that the data has been pruned to me. Pruning tags is a bonus that doesn't impact the validity of pruning itself. Do you agree?
Actually, tags are persisted "forever", so they don't need to/cannot be pruned.
014765e
f34d82a
PR updated to keep compat with already populated pools. I still need to fix tests and to have a closer look at your version of getTagVersions.
c59be36
ec21011
Now with a special storage class (named Ͼ for making it as short as possible). This could also act as a DTO between adapters and items, to store metadata more efficiently (eg using an HSET on redis). This is left as an exercise for another iteration :)
Ͼ
e252a3c
I added back MAX_NUMBER_OF_KNOWN_TAG_VERSIONS, with an LRU-based implementation.
MAX_NUMBER_OF_KNOWN_TAG_VERSIONS
Let me know if I missed any features/behaviors that you wanted to achieve @sbelyshkin
I'm going to wait for your feedback/review now.
TagAwareAdapter
[Cache] Improve packing tags into items
210b4cb
Last change: added $persistTags on getTagVersions(), to not create tags when only fetching them for comparison.
$persistTags
getTagVersions()
Should regular adapter know about tags?
Only about metadata, and tags are part of them. That's OK to me.
sbelyshkin sbelyshkin left review comments
Successfully merging this pull request may close these issues.