public override void Add(string path, T feature) { var cachedRecord = storage.GetFileRecordAsync(path).Result; if (cachedRecord == null) //no cache record found { cachedRecord = PersistentFileRecord.Create(path); } cachedRecord.SetData(dataKey, feature); storage.UpdateFileRecordAsync(path, cachedRecord).Wait(); //System.Diagnostics.Debug.WriteLine($"{System.IO.Path.GetFileName(path)}: cache updated"); base.Add(path, feature); }