Second Level Cache in Castle ActiveRecord

Second level cache is different than first level cache. It acts on session factory level not each individual session. In order to setup second level cache in a Castle ActiveRecord application consider following points:

1. Settings of second level cache in Castle ActiveRecord is basically as same as NHibernate.

2. In addition of web.config/app.config settings, caching must enabled in entities too.

3. Caching in collections and queries must be considered too.

4. Each operation must be wrapped in a transaction.

5. FindAll series of Castle ActiveRecord does not allow query caching. You must use your own custom build of Castle ActiveRecord.

6. For more info go here, here and here.

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *