File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
CoreDistributedCache/NHibernate.Caches.CoreDistributedCache.Tests Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 33
33
<cache region="noExplicitExpiration" sliding="true" />
34
34
</coredistributedcache> -->
35
35
36
+ <!-- For testing Redis
37
+ <coredistributedcache factory-class="NHibernate.Caches.CoreDistributedCache.Redis.RedisFactory,NHibernate.Caches.CoreDistributedCache.Redis">
38
+ <properties>
39
+ <property name="configuration">localhost</property>
40
+ <property name="instance-name">test</property>
41
+ </properties>
42
+ <cache region="foo" expiration="500" sliding="true" />
43
+ <cache region="noExplicitExpiration" sliding="true" />
44
+ </coredistributedcache> -->
45
+
46
+ <!-- For testing SqlServer
47
+ These settings suppose the following commands have been run from the test project directory:
48
+ dotnet restore
49
+ dotnet sql-cache create "Server=.\SQLExpress;initial catalog=nhibernate;Integrated Security=SSPI" dbo sqlServerDistributedCache
50
+ <coredistributedcache factory-class="NHibernate.Caches.CoreDistributedCache.SqlServer.SqlServerFactory,NHibernate.Caches.CoreDistributedCache.SqlServer">
51
+ <properties>
52
+ <property name="connection-string">Server=.\SQLExpress;initial catalog=nhibernate;Integrated Security=SSPI</property>
53
+ <property name="schema-name">dbo</property>
54
+ <property name="table-name">sqlServerDistributedCache</property>
55
+ </properties>
56
+ <cache region="foo" expiration="500" sliding="true" />
57
+ <cache region="noExplicitExpiration" sliding="true" />
58
+ </coredistributedcache> -->
59
+
36
60
<hibernate-configuration xmlns =" urn:nhibernate-configuration-2.2" >
37
61
<session-factory >
38
62
<property name =" connection.provider" >NHibernate.Connection.DriverConnectionProvider</property >
Original file line number Diff line number Diff line change 30
30
<ItemGroup Condition =" '$(TargetFramework)'=='netcoreapp2.0'" >
31
31
<PackageReference Include =" NUnitLite" Version =" 3.9.0" />
32
32
</ItemGroup >
33
- </Project >
33
+ <ItemGroup >
34
+ <DotNetCliToolReference Include =" Microsoft.Extensions.Caching.SqlConfig.Tools" Version =" 2.0.0" />
35
+ </ItemGroup >
36
+ </Project >
You can’t perform that action at this time.
0 commit comments