Skip to content
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

Update to support Cake4 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

josephshanak
Copy link

This PR updates the library to support Cake4.

Cake4 updates the interface for CacheEngine and changes read/write to get/set and allows more flexibility with specifying defaults.

The new interface also adds clearGroup (public function clearGroup(string $group): bool). I implemented clearGroup using the naive method of just iterating over keys ... from redis. The CakePHP RedisEngine implements this by keeping a separate key for groups and incrementing it when clearing a group. I didn't see an easy way to do this without rewriting much of this engine, so I chose to keep the naive approach for now.

@josephshanak josephshanak mentioned this pull request Oct 19, 2020
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.

1 participant