Adopt keyv to help expand storage/cache options #24910
Replies: 8 comments
|
Sounds like a good idea. We can make breaking changes to configuration in a major release if necessary |
|
Happy for this to go ahead but suggest if you or anyone is implementing it then check here in this issue first with proposed configuration changes, etc. so we can discuss |
|
Today we have both compression and memoization with our package cache, so it would be interesting if we can replace both those with the keyv equivalents. I'm not sure their definition of memoization is same as I'm thinking. In Renovate's case I mean we prevent doing more than one identical query per package within the same repo run. We'd also need to support the file-based approach to replace |
|
I would like to support the package cache first, but we should also think about repo cache support for later too. It must be possible to pick different backends for each (e.g. Redis for package cache, S3 for repo cache). |
|
|
Strange, I wonder if it can be added (e.g. a ttl column, and period sweep).
We could submit a PR to make it customizable? |
|
@jamietanna @viceice - is this idea suggestion still valid, or worth closing out? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What would you like Renovate to be able to do?
Raising as a feature request / suggestion. Currently renovate supports a few different storage options (local, redis, S3), each with their own implementation.
Keyv is a simple key-value storage with support for multiple backend adapters (MySQL, PostgreSQL, SQLite, Redis, Mongo, DynamoDB, Firestore, Memcached, and more).
There are two flavors of it
If you have any ideas on how this should be implemented, please tell us here.
By introducing something like keyv, Renovate would be able to support a wider variety of storage options without needing a custom implementation for each specific adapter
Is this a feature you are interested in implementing yourself?
Maybe
All reactions