Add some fixes in cache settings

This commit is contained in:
Oscar Morales
2025-06-06 10:22:40 -06:00
parent 4103c4da8d
commit 852560d0e2
3 changed files with 40 additions and 12 deletions

View File

@@ -21,8 +21,6 @@ namespace Core.Blueprint.Caching.Configuration
{
// TODO for the following variable we'll need to add in the appsettings.json the following config: "UseRedisCache": true,
bool useRedis = configuration.GetValue<bool>("UseRedisCache");
//TODO decide wheter to use appsettings or the following ENV variable
useRedis = Environment.GetEnvironmentVariable("CORE_BLUEPRINT_PACKAGES_USE_REDIS")?.ToLower() == "true";
if (useRedis)
{