Skip to content

Conversation

@boazpoolman
Copy link
Member

This is a stacked PR, branched off of dev/v5-docs.

This PR updates cache-manager to version 7, integrating Keyv storage adapters.

Memory provider
The memory provider now uses quick-lru as it's Keyv storage adapter. My plan was to have cache-manager use it's default memory provider (CacheableMemory), but that caused issues when trying to find the keys in the cache (source).

Using quick-lru allowed me to move past this issue, and seeing how Keyv recommends quick-lru as an external storage adapter it seemed like the right thing to do.

Redis provider
The Redis provider now uses the native @keyv/redis adapter locked at version 3. The reason for that is starting from version 4 they have replaced ioredis with @redis/client. That makes it incompatible with the Strapi Redis plugin which is built on top of ioredis.

Ideally we can remove the version constraint of @keyv/redis eventually, but that would require the Redis plugin to migrate to the new Redis client. I've opened an issue for that on the Redis plugin repo for that.

@boazpoolman boazpoolman changed the base branch from main to dev/strapi5 August 11, 2025 14:53
@derrickmehaffy
Copy link
Contributor

Stacked is an understatement lol. Thanks Boaz I'll try and take a look today/this week. Got sidetracked last week.

@derrickmehaffy
Copy link
Contributor

@boazpoolman Do we still need this PR or did the other one contain these changes?

@derrickmehaffy
Copy link
Contributor

Ah nvm I see #109 was branched off this, so gonna close this one

@derrickmehaffy derrickmehaffy deleted the dev/update-cache-manager branch September 5, 2025 16:40
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.

3 participants