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

Implement TTL and use our own repository to cache requests #83

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Aug 8, 2024

This PR fixes the current issue with the keys in redis (the special characters are encoded)

See these keys:
image

I noticed that our cache repository don't have this behaviour, and this come from the abstract-cache. I just ditch it. Our repository is equivalent. I had to implement the TTL method, since we didn't have a way to get the expiration of keys.

With that, it works as expected.

Tested with curl -i http://localhost:3010/proxies/coingecko/simple/token_price/ethereum/\?contract_addresses\=0x6B175474E89094C44Da98b954EedeAC495271d0F\&vs_currencies\=usd
image

@anxolin anxolin marked this pull request as ready for review August 8, 2024 16:17
@anxolin anxolin merged commit 2fa7b68 into main Aug 9, 2024
4 checks passed
@anxolin anxolin deleted the use-cache-repository-for-requests branch August 9, 2024 10:49
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.

2 participants