if (redisCacheSettings.Enabled) { _nodeContext.IsRedisCachingEnabled = true; config .AddRedisStore(redisCacheSettings.CacheStoreName, redisCacheSettings.Options.Configuration, redisCacheSettings.Options.InstanceName) .ConfigureCaches(WildcardMatch.All(), redisCacheSettings.CacheStoreName); // [459527] Add store variable CommerceRedisCacheStore store = null; services.Replace( new ServiceDescriptor( typeof(ICacheStore), sp => { // [459527] retrieve store value store = ActivatorUtilities.CreateInstance(sp, redisCacheSettings.CacheStoreName, sp.GetService()); // [459527] Retreive Redis connection pool var poolSize = cachingSettings?.Redis?.RedisConnectionPoolSize; Log.Warning($"[459527]: store is null: {store == null}"); for (int i = 0; i < poolSize; i++) { // [459527] Make sure every connection from the pool is operational store.Get(TypeNameHelper.GetTypeDisplayName(typeof(SellableItem)) + "." + "[Product ID from Shared database]"); } return store; }, ServiceLifetime.Singleton)); }