Get a particular named query cache, or the default cache

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

Syntax

C#
IQueryCache GetQueryCache(
	string regionName
)
Visual Basic
Function GetQueryCache ( _
	regionName As String _
) As IQueryCache
Visual C++
IQueryCache^ GetQueryCache(
	String^ 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