how to configure second level cache in code (not thru xml)
the current settings i have are:
public NHCachingSetup(Configuration cfg)
{
// use first level cache
cfg.Cache(x =>
{
x.UseQueryCache = true;
x.Provider<SysCacheProvider>();
});
// set 60 min expiration time
cfg.SessionFactory().Caching
.WithDefaultExpiration(60);
}