Remove redis

This commit is contained in:
Laura Hausmann 2023-01-24 18:43:46 +01:00
parent 52925f0748
commit 3ef7971fec
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 1 additions and 11 deletions

View file

@ -23,17 +23,8 @@ public class Startup {
#if (DEBUG)
services.AddControllers().AddRazorRuntimeCompilation();
services.AddControllers();
services.AddStackExchangeRedisCache(options => {
options.Configuration = "localhost";
options.InstanceName = "trainav_development";
});
#else
services.AddControllers();
services.AddStackExchangeRedisCache(options =>
{
options.Configuration = "localhost";
options.InstanceName = "trainav_production";
});
#endif
}
@ -63,4 +54,4 @@ public class Startup {
endpoints.MapControllers();
});
}
}
}

View file

@ -35,7 +35,6 @@
<PackageReference Include="linq2db" Version="3.2.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.2" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.3" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.115" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.7.0" />