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

Mint: allow caching with external Redis service #478

Open
callebtc opened this issue Nov 27, 2024 · 3 comments
Open

Mint: allow caching with external Redis service #478

callebtc opened this issue Nov 27, 2024 · 3 comments
Labels
enhancement New feature or request mint

Comments

@callebtc
Copy link
Contributor

Currently, cached request/response pairs are written to memory (#361). It would be great if the mint could use a dedicated Redis caching service for this (as well or instead of RAM caching).

@mubarak23
Copy link
Contributor

A setup that set memory as default for cashing requests/ response,
But allow mint to setup their own external
Redis caching service

@thesimplekid
Copy link
Collaborator

thesimplekid commented Nov 27, 2024

I think this is a good idea and something that can be supported fairly easier by changing the cache to be a Cache trait instead of a specific struct like we do for the database within the mint.

@thesimplekid thesimplekid added enhancement New feature or request mint labels Nov 27, 2024
@crodas
Copy link
Contributor

crodas commented Nov 29, 2024

@thesimplekid I'm working on this, upcoming PR. My approach is to always have an in memory cache and use redis to synchronize cache between nodes /cc @callebtc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mint
Projects
None yet
Development

No branches or pull requests

4 participants