Enable caching of this query result set.

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

Syntax

Visual Basic (Declaration)
Function SetCacheable ( _
	cacheable As Boolean _
) As IQuery
C#
IQuery SetCacheable(
	bool cacheable
)
Visual C++
IQuery^ SetCacheable(
	bool cacheable
)
JavaScript
function setCacheable(cacheable);

Parameters

cacheable
Type: System..::.Boolean
Should the query results be cacheable?

See Also