You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Bind for 0.0.0.0:3000 failed: port is already allocated.$> docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES69e65c95dfaf aspnet-core-net-6-api-cache "dotnet CacheSample.…" 35 seconds ago Up 29 seconds aspnet-core-net-6-api-cache-core$> docker stop 69e65c95dfaf$> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES$> docker run --rm -p 3000:3000 aspnet-core-net-6-api-cacheinfo: Microsoft.Hosting.Lifetime[14] Now listening on: http://[::]:3000info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down.info: Microsoft.Hosting.Lifetime[0] Hosting environment: Productioninfo: Microsoft.Hosting.Lifetime[0] Content root path: /app/
Using Memory
Using Redis
You can add your custom DB Provider (MongoDB, SQL Server, PostgreSQL, etc) and adapt it as necessary
Go to the file "appsettings.json" (aspnet-core-net-6-api-cache/CacheSample.WebApi/appsettings.json) and replace your redis connection string