feat: Implement ability to drop cache keys using combination of OR an…#75
Open
KminekMatej wants to merge 12 commits intonette:masterfrom
Open
feat: Implement ability to drop cache keys using combination of OR an…#75KminekMatej wants to merge 12 commits intonette:masterfrom
KminekMatej wants to merge 12 commits intonette:masterfrom
Conversation
Contributor
Author
|
Documentation planned to create after expected discussion |
Contributor
|
Have you considered using |
Contributor
Author
|
@JanTvrdik I did and it works. However this is usable for some simple scenarios like you wrote, but when the logic grows bigger, using this approach makes it way clearer. In some points, I need to drop all animals, regardless on any other tags they have. In that case, I need to add to newly created dog these tags:
You can imagine that when your orm complexity grows large, this gets a big messy. Way easier solution is then tagging with:
and in different points of application perform drops right the way you want |
40be743 to
a116cb9
Compare
ea335de to
ccec70b
Compare
3ce492d to
fb5c89d
Compare
d31ad07 to
a71faf1
Compare
2d5f7a5 to
91c8061
Compare
b91fc47 to
05451a0
Compare
184a11f to
9566d2f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extending
$cache->clean();with possibility to search for tags to drop using AND logicUsage:
Dropping entities having tags
animalanddogand (brownorwhite). Will not match entity, taggedanimalanddogandblack.Standard behaviour stays unchanged.