First implementation of CachingFileStorage

+ some tests to test loading and saving to cached storage
This commit is contained in:
Philipp Crocoll
2013-07-30 20:42:16 +02:00
parent 89eb4b0a34
commit 3cfb2c17e6
12 changed files with 741 additions and 37 deletions

View File

@@ -36,7 +36,7 @@ namespace keepass2android.Io
TimeSpan diff = currentModificationDate - previousDate;
return diff > TimeSpan.FromSeconds(1);
//don't use > operator because milliseconds are truncated
return File.GetLastWriteTimeUtc(ioc.Path) - previousDate >= TimeSpan.FromSeconds(1);
//return File.GetLastWriteTimeUtc(ioc.Path) - previousDate >= TimeSpan.FromSeconds(1);
}