I want to know how make NHibernate store my queries at 2-nd level cache for specified time
I see it only for entities cache.
Thank you for replying.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The query cache is not enabled by default. To enable it in your hibernate.cfg.xml:
You should specify a cache region for queries. If not specified, the region will be “NHibernate.Cache.StandardQueryCache”.
For syscache, cache regions are configured in you app.config: