Skip to content

[12.x] Add flexible support to memoized cache store#55709

Merged
taylorotwell merged 3 commits into
laravel:12.xfrom
timacdonald:memozied-locks
May 12, 2025
Merged

[12.x] Add flexible support to memoized cache store#55709
taylorotwell merged 3 commits into
laravel:12.xfrom
timacdonald:memozied-locks

Conversation

@timacdonald

Copy link
Copy Markdown
Member

Fixes #55700

Using flexible with cache memo silently fails. This ensures it works as expected.

We could make changes in the flexible method if we don't want to add the lock / restoreLock methods to the memoized cache driver, but I think it is fine and potentially even useful if you want to pass around a memoized store.

@taylorotwell taylorotwell merged commit 14c49a7 into laravel:12.x May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling flexible() on a memoized cache errors during deferred refetch

2 participants