private void AddAzureCacheForRedis()

in src/Relecloud.Web.CallCenter/Startup.cs [62:74]


        private void AddAzureCacheForRedis(IServiceCollection services)
        {
            var connectionString = Configuration["App:RedisCache:ConnectionString"];

            if (!string.IsNullOrWhiteSpace(connectionString))
            {
                services.AddAzureStackExchangeRedisCache(connectionString, _credential);
            }
            else
            {
                services.AddDistributedMemoryCache();
            }
        }