|
754 | 754 | <listitem>
|
755 | 755 | <literal>NHibernate.Caches.StackExchangeRedis.TwoLayerCacheRegionStrategy</literal>
|
756 | 756 | <para>
|
757 |
| - A strategy that extends <literal>NHibernate.Caches.StackExchangeRedis.DefaultRegionStrategy</literal> and uses |
758 |
| - an additional local memory cache for faster readings. The local caches are invalidated by using Redis pubsub mechanism. |
| 757 | + Extends <literal>NHibernate.Caches.StackExchangeRedis.DefaultRegionStrategy</literal> and uses |
| 758 | + an additional local memory cache for faster readings. The local caches are invalidated by using Redis pub/sub mechanism. |
759 | 759 | This strategy should be used only for regions that have few write operations and a high expiration time.
|
760 |
| - This strategy has additional settings: |
| 760 | + This strategy inherits additional settings from <literal>DefaultRegionStrategy</literal> and also has its own settings: |
761 | 761 | <varlistentry>
|
762 | 762 | <term><literal>cache.region_strategy.two_layer_cache.use_pipelining</literal></term>
|
763 | 763 | <listitem>
|
|
784 | 784 | <listitem>
|
785 | 785 | <literal>NHibernate.Caches.StackExchangeRedis.FastTwoLayerCacheRegionStrategy</literal>
|
786 | 786 | <para>
|
787 |
| - A strategy that extends <literal>NHibernate.Caches.StackExchangeRedis.FastRegionStrategy</literal> and uses |
788 |
| - an additional local memory cache for faster readings. The local caches are invalidated by using Redis pubsub mechanism. |
| 787 | + Extends <literal>NHibernate.Caches.StackExchangeRedis.FastRegionStrategy</literal> and uses |
| 788 | + an additional local memory cache for faster readings. The local caches are invalidated by using Redis pub/sub mechanism. |
789 | 789 | This strategy does not support <literal>ICache.Clear</literal> operation and should be used only for regions that have
|
790 | 790 | few write operations and a high expiration time. This strategy has additional settings:
|
791 | 791 | <varlistentry>
|
|
814 | 814 | <listitem>
|
815 | 815 | <literal>NHibernate.Caches.StackExchangeRedis.DistributedLocalCacheRegionStrategy</literal>
|
816 | 816 | <para>
|
817 |
| - Uses only a memory cache to store the values and uses Redis pubsub mechanism to synchronize data between other local caches. |
| 817 | + Uses only a memory cache to store the values and uses Redis pub/sub mechanism to synchronize data between other local caches. |
818 | 818 | The synchronization between caches is done by comparing the UTC <literal>DateTime.Ticks</literal>, which represent when the
|
819 | 819 | operation was performed. When two operations have the same <literal>DateTime.Ticks</literal>, then the client with the highest
|
820 | 820 | id wins. This strategy should be used only for regions that have few write operations and a high expiration time. It is recommended
|
|
0 commit comments