-
-
Notifications
You must be signed in to change notification settings - Fork 45
feat: Implement ability to drop cache keys using combination of OR an… #75
New issue
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
base: master
Are you sure you want to change the base?
Conversation
|
Documentation planned to create after expected discussion |
|
Have you considered using |
|
@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
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.