Creates an ICacheConcurrencyStrategy from the parameters.
Namespace:
NHibernate.CacheAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function CreateCache ( _ usage As String, _ name As String, _ mutable As Boolean, _ settings As Settings, _ properties As IDictionary _ ) As ICacheConcurrencyStrategy |
C# |
---|
public static ICacheConcurrencyStrategy CreateCache( string usage, string name, bool mutable, Settings settings, IDictionary properties ) |
Visual C++ |
---|
public: static ICacheConcurrencyStrategy^ CreateCache( String^ usage, String^ name, bool mutable, Settings^ settings, IDictionary^ properties ) |
JavaScript |
---|
NHibernate.Cache.CacheFactory.createCache = function(usage, name, mutable, settings, 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..::.IDictionary
Properties the cache provider can use to configure the cache.