Creates an ICacheConcurrencyStrategy from the parameters.
Namespace: NHibernate.CacheAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static ICacheConcurrencyStrategy CreateCache( string usage, string name, bool mutable, Settings settings, IDictionary<string, string> properties ) |
Visual Basic |
---|
Public Shared Function CreateCache ( _ usage As String, _ name As String, _ mutable As Boolean, _ settings As Settings, _ properties As IDictionary(Of String, String) _ ) As ICacheConcurrencyStrategy |
Visual C++ |
---|
public: static ICacheConcurrencyStrategy^ CreateCache( String^ usage, String^ name, bool mutable, Settings^ settings, IDictionary<String^, String^>^ properties ) |
Parameters
- usage
- Type: System..::..String
The name of the strategy that ICacheProvider should use for the class.
- name
- Type: System..::..String
The name of the class the strategy is being created for.
- mutable
- Type: System..::..Boolean
trueTruetruetrue (True in Visual Basic) if the object being stored in the cache is mutable.
- settings
- Type: NHibernate.Cfg..::..Settings
Used to retrieve the global cache region prefix.
- properties
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, String>)>)>
Properties the cache provider can use to configure the cache.