Skip to content

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