Get a particular named query cache, or the default cache

Namespace:  NHibernate.Engine
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function GetQueryCache ( _
	regionName As String _
) As IQueryCache
C#
IQueryCache GetQueryCache(
	string regionName
)
Visual C++
IQueryCache^ GetQueryCache(
	String^ regionName
)
JavaScript
function getQueryCache(regionName);

Parameters

regionName
Type: System..::.String
the name of the cache region, or null for the default query cache

Return Value

the existing cache, or a newly created cache if none by that region name

See Also