示例#1
0
 public Cache(DataFileCache dfc) : base(dfc.Capacity(), 1, 3, true)
 {
     this._saveAllTimer     = new StopWatch(false);
     this._sortTimer        = new StopWatch(false);
     base.MaxCapacity       = dfc.Capacity();
     this.dataFileCache     = dfc;
     this._capacity         = dfc.Capacity();
     this._bytesCapacity    = dfc.BytesCapacity();
     this._rowComparator    = new CachedObjectComparator();
     this._rowTable         = new ICachedObject[this._capacity];
     this._cacheBytesLength = 0L;
 }