File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/NHibernate/Cfg/Loquacious Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public string RegionsPrefix
2828set { cfg . SetProperty ( Environment . CacheRegionPrefix , value ) ; }
2929}
3030
31- public byte DefaultExpiration
31+ public int DefaultExpiration
3232{
3333set { cfg . SetProperty ( Environment . CacheDefaultExpiration , value . ToString ( ) ) ; }
3434}
@@ -89,7 +89,7 @@ public ICacheConfiguration UsingMinimalPuts()
8989return this ;
9090}
9191
92- public IFluentSessionFactoryConfiguration WithDefaultExpiration ( byte seconds )
92+ public IFluentSessionFactoryConfiguration WithDefaultExpiration ( int seconds )
9393{
9494fc . Configuration . SetProperty ( Environment . CacheDefaultExpiration , seconds . ToString ( ) ) ;
9595return fc ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ public interface ICacheConfiguration
66ICacheConfiguration Through < TProvider > ( ) where TProvider : ICacheProvider ;
77ICacheConfiguration PrefixingRegionsWith ( string regionPrefix ) ;
88ICacheConfiguration UsingMinimalPuts ( ) ;
9- IFluentSessionFactoryConfiguration WithDefaultExpiration ( byte seconds ) ;
9+ IFluentSessionFactoryConfiguration WithDefaultExpiration ( int seconds ) ;
1010IQueryCacheConfiguration Queries { get ; }
1111}
1212
@@ -15,7 +15,7 @@ public interface ICacheConfigurationProperties
1515bool UseMinimalPuts { set ; }
1616bool UseQueryCache { set ; }
1717string RegionsPrefix { set ; }
18- byte DefaultExpiration { set ; }
18+ int DefaultExpiration { set ; }
1919void Provider < TProvider > ( ) where TProvider : ICacheProvider ;
2020void QueryCache < TFactory > ( ) where TFactory : IQueryCache ;
2121}
You can’t perform that action at this time.
0 commit comments