Update of /cvsroot/nhibernate/NHibernateContrib/src/BantamTech.SysCache
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27915
Modified Files:
syscache.config SysCacheFixture.cs SysCacheProvider.cs
Log Message:
minor cleanup
Index: SysCacheFixture.cs
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/BantamTech.SysCache/SysCacheFixture.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SysCacheFixture.cs 8 Dec 2004 08:02:40 -0000 1.2
--- SysCacheFixture.cs 13 Jan 2005 23:07:23 -0000 1.3
***************
*** 133,137 ****
Hashtable h = new Hashtable();
h.Add( "priority", 7 );
! ICache cache = new SysCache( "nunit", h );
}
--- 133,137 ----
Hashtable h = new Hashtable();
h.Add( "priority", 7 );
! new SysCache( "nunit", h );
}
***************
*** 143,147 ****
h.Add( "staticExpiration", DateTime.Now );
h.Add( "relativeExpiration", 300 );
! ICache cache = new SysCache( "nunit", h );
}
--- 143,147 ----
h.Add( "staticExpiration", DateTime.Now );
h.Add( "relativeExpiration", 300 );
! new SysCache( "nunit", h );
}
***************
*** 152,156 ****
Hashtable h = new Hashtable();
h.Add( "staticExpiration", DateTime.Parse( "1/1/1980") );
! ICache cache = new SysCache( "nunit", h );
}
--- 152,156 ----
Hashtable h = new Hashtable();
h.Add( "staticExpiration", DateTime.Parse( "1/1/1980") );
! new SysCache( "nunit", h );
}
***************
*** 161,165 ****
Hashtable h = new Hashtable();
h.Add( "staticExpiration", "foobar" );
! ICache cache = new SysCache( "nunit", h );
}
--- 161,165 ----
Hashtable h = new Hashtable();
h.Add( "staticExpiration", "foobar" );
! new SysCache( "nunit", h );
}
***************
*** 170,174 ****
Hashtable h = new Hashtable();
h.Add( "relativeExpiration", "foobar" );
! ICache cache = new SysCache( "nunit", h );
}
--- 170,174 ----
Hashtable h = new Hashtable();
h.Add( "relativeExpiration", "foobar" );
! new SysCache( "nunit", h );
}
Index: syscache.config
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/BantamTech.SysCache/syscache.config,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** syscache.config 7 Dec 2004 19:59:16 -0000 1.1
--- syscache.config 13 Jan 2005 23:07:23 -0000 1.2
***************
*** 22,26 ****
<add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
! <add key="hibernate.connection.connection_string" value="Server=localhost;initial catalog=pubs;Integrated Security=SSPI" />
<add key="hibernate.cache.provider_class" value="BantamTech.SysCache.SysCacheProvider,BantamTech.SysCache" />
<add key="hibernate.cache.use_query_cache" value="true" />
--- 22,26 ----
<add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
! <add key="hibernate.connection.connection_string" value="Server=localhost;initial catalog=nhibernate;Integrated Security=SSPI" />
<add key="hibernate.cache.provider_class" value="BantamTech.SysCache.SysCacheProvider,BantamTech.SysCache" />
<add key="hibernate.cache.use_query_cache" value="true" />
Index: SysCacheProvider.cs
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/BantamTech.SysCache/SysCacheProvider.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SysCacheProvider.cs 7 Dec 2004 19:59:16 -0000 1.1
--- SysCacheProvider.cs 13 Jan 2005 23:07:23 -0000 1.2
***************
*** 47,60 ****
public ICache BuildCache( string regionName, IDictionary properties )
{
if( log.IsDebugEnabled )
{
- if( regionName == null )
- {
- regionName = "";
- }
- if( properties == null )
- {
- properties = new Hashtable();
- }
StringBuilder sb = new StringBuilder();
foreach( DictionaryEntry de in properties )
--- 47,60 ----
public ICache BuildCache( string regionName, IDictionary properties )
{
+ if( regionName == null )
+ {
+ regionName = "";
+ }
+ if( properties == null )
+ {
+ properties = new Hashtable();
+ }
if( log.IsDebugEnabled )
{
StringBuilder sb = new StringBuilder();
foreach( DictionaryEntry de in properties )
|