Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.CacheQueries Property

Gets or sets a value indicating whether to cache all queries executed by this template.

[Visual Basic]
Public Overrides Property CacheQueries() As Boolean
   Public Get
   End Get
   Public Set
   End Set
End Property
public override bool CacheQueries { public get; public set; }

Property Value

true if cache queries; otherwise, false.


If this is true, all IQuery and ICriteria objects created by this template will be marked as cacheable (including all queries through find methods).

To specify the query region to be used for queries cached by this template, set the QueryCacheRegion property.

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace