[Adapdev-commits] Adapdev/src/Adapdev.Cache AbstractCache.cs,1.1,1.2 Adapdev.Cache.csproj,1.5,1.6 Fi
Status: Beta
Brought to you by:
intesar66
From: Sean M. <int...@us...> - 2005-06-02 03:26:08
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Cache In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/src/Adapdev.Cache Modified Files: AbstractCache.cs Adapdev.Cache.csproj FileCache.cs ICache.cs SerializedCacheItem.cs Log Message: Updated OracleSelectQuery to properly handle SetLimit Updated CrypoTests to pass Modified SmartTreeView to track state of nodes across reloads Small modifications to the caching block Index: FileCache.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Cache/FileCache.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FileCache.cs 25 May 2005 05:17:46 -0000 1.2 --- FileCache.cs 2 Jun 2005 03:25:59 -0000 1.3 *************** *** 88,94 **** public override void Clear() { ! Directory.Delete(this._folderPath, true); ! Directory.CreateDirectory(this._folderPath); ! this._items.Clear(); } --- 88,97 ---- public override void Clear() { ! if(Directory.Exists(this._folderPath)) ! { ! Directory.Delete(this._folderPath, true); ! Directory.CreateDirectory(this._folderPath); ! this._items.Clear(); ! } } Index: SerializedCacheItem.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Cache/SerializedCacheItem.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SerializedCacheItem.cs 25 May 2005 05:17:46 -0000 1.1 --- SerializedCacheItem.cs 2 Jun 2005 03:25:59 -0000 1.2 *************** *** 7,10 **** --- 7,12 ---- /// Summary description for SerializedCacheItem. /// </summary> + /// + [Serializable] public class SerializedCacheItem : CacheItem { Index: ICache.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Cache/ICache.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ICache.cs 25 May 2005 05:17:46 -0000 1.2 --- ICache.cs 2 Jun 2005 03:25:59 -0000 1.3 *************** *** 26,29 **** --- 26,30 ---- void Populate(); void Copy(ICache cache); + double ScavengeInterval{get;set;} } } Index: AbstractCache.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Cache/AbstractCache.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AbstractCache.cs 25 May 2005 05:17:46 -0000 1.1 --- AbstractCache.cs 2 Jun 2005 03:25:59 -0000 1.2 *************** *** 1,11 **** using System; namespace Adapdev.Cache { /// <summary> /// Summary description for AbstractCache. /// </summary> ! public abstract class AbstractCache : ICache { #region ICache Members --- 1,20 ---- using System; + using Adapdev; namespace Adapdev.Cache { + using System.Collections; + using System.Timers; + using Adapdev.Cache.Scavengers; + /// <summary> /// Summary description for AbstractCache. /// </summary> ! public abstract class AbstractCache : LongLivingMarshalByRefObject, ICache { + protected ArrayList _timers = new ArrayList(); + protected ArrayList _scavengers = new ArrayList(); + protected Timer _timer = new Timer(new TimeSpan(2,0,0).Milliseconds); + #region ICache Members *************** *** 40,43 **** --- 49,57 ---- } + public void AddTimedScavenger(IScavenger scavenger) + { + this._scavengers.Add(scavenger); + } + public void Copy(ICache cache) { *************** *** 45,48 **** --- 59,68 ---- } + public double ScavengeInterval + { + get { throw new NotImplementedException(); } + set { throw new NotImplementedException(); } + } + public abstract void Add(string key, object o); public abstract void Clear(); Index: Adapdev.Cache.csproj =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Cache/Adapdev.Cache.csproj,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Adapdev.Cache.csproj 26 May 2005 01:54:39 -0000 1.5 --- Adapdev.Cache.csproj 2 Jun 2005 03:25:59 -0000 1.6 *************** *** 131,134 **** --- 131,139 ---- /> <File + RelPath = "CacheStats.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "CacheUtil.cs" SubType = "Code" |