I built a small Aspire extension that lets you keep using a normal redis resource in Aspire when developing locally, but when you publish using `aspire deploy` rather than deploying to Azure, it will deploy to Upstash (which is where I prefer to deploy my redis caches to, personally).
You just add the package to your aspire project, and append `.PublishToUpstash(...)` after `builder.AddRedis("cache")`.
Locally, nothing changes. It only effects deployment through `aspire deploy`.
Here is the Github repo, where the README has the full docs etc.