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

Add redis to useMetadataCache yoga plugin #5194

Merged
merged 5 commits into from
Apr 26, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Apr 26, 2024

Context

@lucasbordeau introduced a new Yoga plugin that allows us to cache our requests (👏), see #5189
I'm simply updating the implementation to allow us to use different cache storage types such as redis
Also adding a check so it does not use cache for other operations than ObjectMetadataItems

Test

locally, first call takes 340ms, 2nd takes 30ms with 'redis' and 13ms with 'memory'

@Weiko Weiko merged commit ebc25c8 into main Apr 26, 2024
3 of 4 checks passed
@Weiko Weiko deleted the c--add-redis-to-use-metadata-cache-plugin-2 branch April 26, 2024 17:27
arnavsaxena17 pushed a commit to arnavsaxena17/twenty that referenced this pull request Oct 6, 2024
## Context
@lucasbordeau introduced a new Yoga plugin that allows us to cache our
requests (👏), see twentyhq#5189
I'm simply updating the implementation to allow us to use different
cache storage types such as redis
Also adding a check so it does not use cache for other operations than
ObjectMetadataItems

## Test
locally, first call takes 340ms, 2nd takes 30ms with 'redis' and 13ms
with 'memory'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants