Cache when
and unless
#48255
Unanswered
devajmeireles
asked this question in
Ideas
Replies: 1 comment
-
Conditionable returns $this. I don't see any benefits. For one-liner fun there is a way to avoid of using if in less keystrokes: /* ... */ && Cache::rememberForever($key, fn() => $post)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since if I suggest the PR it will be disapproved 😂 , I'm posting it here for those who want to do it:
It would be awesome if
Cache
facade supported thewhen
andunless
methods, to provide us with something like this:In theory is just to add the
Conditionable
trait to theCache
repository.Beta Was this translation helpful? Give feedback.
All reactions