You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/reference/modules/configuration.xml
+20
Original file line number
Diff line number
Diff line change
@@ -610,6 +610,26 @@ var session = sessions.OpenSession(conn);
610
610
</para>
611
611
</entry>
612
612
</row>
613
+
<row>
614
+
<entry>
615
+
<literal>cache.read_write_lock_factory</literal>
616
+
</entry>
617
+
<entry>
618
+
Specify the cache lock factory to use for read-write cache regions.
619
+
Defaults to the built-in <literal>async</literal> cache lock factory.
620
+
<para>
621
+
<emphasisrole="strong">eg.</emphasis>
622
+
<literal>async</literal>, or <literal>sync</literal>, or <literal>classname.of.CacheLockFactory, assembly</literal> with custom implementation of <literal>ICacheReadWriteLockFactory</literal>
623
+
</para>
624
+
<para>
625
+
<literal>async</literal> uses a single writer multiple readers locking mechanism supporting asynchronous operations.
626
+
</para>
627
+
<para>
628
+
<literal>sync</literal> uses a single access locking mechanism which will throw on asynchronous
629
+
operations but may have better performances than the <literal>async</literal> provider for applications using the .Net Framework (4.8 and below).
returnnewInvalidOperationException("This locker supports only sync operations. Change 'cache.read_write_lock_factory' setting to `async` to support async operations.");
0 commit comments