I'm using a fluent nhibernate with asp.net mvc and I not seeing anything been cached when making queries against the database. I'm not currently using an L2 cache implementation.
Should I see queries being cached without configuring an out of process L2 cache?
Mapping are like this:
Table("ApplicationCategories");
Not.LazyLoad();
Cache.ReadWrite().IncludeAll();
Id(x => x.Id);
Map(x => x.Name).Not.Nullable();
Map(x => x.Description).Nullable();
Example Criteria:
return session
.CreateCriteria<ApplicationCategory>()
.Add(Restrictions.Eq("Name", _name))
.SetCacheable(true);
Everytime I make a request for an application cateogry by name it is hitting the database is this expected behaviour?