public AsyncWrite(AsyncWriteCollection parent, MemoryStream data, string physicalPath, string key)
 {
     this.Parent       = parent;
     this._data        = data;
     this.PhysicalPath = physicalPath;
     this.Key          = key;
     this.JobCreatedAt = DateTime.UtcNow;
 }
 public AsyncCustomDiskCache(ILogger logger, string physicalCachePath, int subfolders, long asyncMaxQueuedBytes = 1024 *1024 *100)
 {
     Locks                       = new AsyncLockProvider();
     QueueLocks                  = new AsyncLockProvider();
     Index                       = new CacheIndex();
     CurrentWrites               = new AsyncWriteCollection();
     this.logger                 = logger;
     PhysicalCachePath           = physicalCachePath;
     this.subfolders             = subfolders;
     CurrentWrites.MaxQueueBytes = asyncMaxQueuedBytes;
 }