Mii images are already cached in-memory, but it would be useful to save some of them to disk so on server restart we do not re-request all of the Mii images we have generated.
There are two possible approaches: either save to our existing psql database in a new table or use something like redis (or valkey now) for an in-memory cache and then persist to disk intermittently.
A third alternative is to integrate a Mii image generator somewhere in this project to avoid rate-limiting or relying on third-parties, however that is significantly higher effort unless some off-the-shelf service for this exists.
Mii images are already cached in-memory, but it would be useful to save some of them to disk so on server restart we do not re-request all of the Mii images we have generated.
There are two possible approaches: either save to our existing psql database in a new table or use something like redis (or valkey now) for an in-memory cache and then persist to disk intermittently.
A third alternative is to integrate a Mii image generator somewhere in this project to avoid rate-limiting or relying on third-parties, however that is significantly higher effort unless some off-the-shelf service for this exists.