mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-24 08:46:48 +08:00
Upgrading Redis from 1.0.481 to 1.2.6
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Configuration;
|
||||
using Orchard.Environment.Configuration;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Logging;
|
||||
using StackExchange.Redis;
|
||||
using Orchard.UI.Notify;
|
||||
using Orchard.Localization;
|
||||
|
||||
namespace Orchard.Redis.Configuration {
|
||||
|
||||
public class RedisConnectionProvider : IRedisConnectionProvider {
|
||||
private static ConcurrentDictionary<string, Lazy<ConnectionMultiplexer>> _connectionMultiplexers = new ConcurrentDictionary<string, Lazy<ConnectionMultiplexer>>();
|
||||
private static ConcurrentDictionary<string, Lazy<ConnectionMultiplexer>> _connectionMultiplexers =
|
||||
new ConcurrentDictionary<string, Lazy<ConnectionMultiplexer>>();
|
||||
private readonly ShellSettings _shellSettings;
|
||||
|
||||
public RedisConnectionProvider(ShellSettings shellSettings) {
|
||||
@@ -26,7 +26,8 @@ namespace Orchard.Redis.Configuration {
|
||||
var _tenantSettingsKey = _shellSettings.Name + ":" + service;
|
||||
var _defaultSettingsKey = service;
|
||||
|
||||
var connectionStringSettings = ConfigurationManager.ConnectionStrings[_tenantSettingsKey] ?? ConfigurationManager.ConnectionStrings[_defaultSettingsKey];
|
||||
var connectionStringSettings = ConfigurationManager.ConnectionStrings[_tenantSettingsKey]
|
||||
?? ConfigurationManager.ConnectionStrings[_defaultSettingsKey];
|
||||
|
||||
if (connectionStringSettings == null) {
|
||||
return null;
|
||||
|
||||
@@ -68,14 +68,15 @@
|
||||
<Reference Include="Remotion.Linq.EagerFetching, Version=2.2.0.0, Culture=neutral, PublicKeyToken=fee00910d6e5f53b, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\Remotion.Linq.EagerFetching.2.2.0\lib\net45\Remotion.Linq.EagerFetching.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="StackExchange.Redis, Version=1.0.316.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\StackExchange.Redis.1.0.481\lib\net45\StackExchange.Redis.dll</HintPath>
|
||||
<Reference Include="StackExchange.Redis, Version=1.2.6.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\StackExchange.Redis.1.2.6\lib\net46\StackExchange.Redis.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
<package id="NHibernate" version="5.6.0" targetFramework="net48" />
|
||||
<package id="Remotion.Linq" version="2.2.0" targetFramework="net48" />
|
||||
<package id="Remotion.Linq.EagerFetching" version="2.2.0" targetFramework="net48" />
|
||||
<package id="StackExchange.Redis" version="1.0.481" targetFramework="net48" />
|
||||
<package id="StackExchange.Redis" version="1.2.6" targetFramework="net48" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user