Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Cache
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9025/Cache
Modified Files:
HashtableCache.cs ICache.cs
Added Files:
ICacheProvider.cs
Log Message:
Applied patch provided by Kevin Williams to help with the building of
DNCache and in jira as
Index: HashtableCache.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Cache/HashtableCache.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HashtableCache.cs 6 May 2004 20:53:59 -0000 1.1
--- HashtableCache.cs 20 Aug 2004 02:34:20 -0000 1.2
***************
*** 54,58 ****
}
!
#endregion
}
--- 54,70 ----
}
! public void Lock( object key )
! {
! }
!
! public void Unlock( object key )
! {
! }
!
! public long NextTimestamp()
! {
! return Timestamper.Next();
! }
!
#endregion
}
Index: ICache.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Cache/ICache.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ICache.cs 6 May 2004 20:53:59 -0000 1.2
--- ICache.cs 20 Aug 2004 02:34:20 -0000 1.3
***************
*** 51,54 ****
--- 51,60 ----
string Region {set;}
+ void Lock( object key );
+
+ void Unlock( object key );
+
+ long NextTimestamp();
+
}
--- NEW FILE: ICacheProvider.cs ---
using System;
using System.Collections;
namespace NHibernate.Cache
{
/// <summary>
/// Support for pluggable caches
/// </summary>
public interface ICacheProvider
{
/// <summary>
/// Configure the cache
/// </summary>
/// <param name="regionName">the name of the cache region</param>
/// <param name="properties">configuration settings</param>
/// <returns></returns>
ICache BuildCache(string regionName, ICollection properties );
/// <summary>
/// generate a timestamp
/// </summary>
/// <returns></returns>
long NextTimestamp();
}
}
|