Concurrent File Store
Example Use
var ctslocal = new CancellationTokenSource();
var cfs = new ConcurrentFileStore<string, string>(
$"strings.bin", //Path
ctslocal.Token, //Cancel token
5000, 10000, //Debounce timers
() => new Dictionary<string, string>() { { "a", "b" } }, //Initialization callback
(writeCallbackBytes) => { }, //Called when a file write occurs
(processFunction) => { }); //A function that is called ONCE after initialization or on startup.
cfs.AddOrUpdate("a", "b");
cfs.AddOrUpdate("a", "c");
cfs.AddOrUpdate("b", "d");
//Await any updates to write
cfs.Await();
//Disposing prevents future writes, forces pending updates to write.
cfs.Dispose()SDK
ConcurrentFileStore Initialization
Example:
ReadAndVerifyPath
Example:
DecompressBytes
Example:
CompressBytes
Example:
Write
Example:
GetCache
Example:
InitializeFromBytes
Example:
Await
Example:
AwaitInitialization
Example:
Get
Example:
Remove
Example:
Contains
Example:
AddOrUpdate
Example:
Keys
Example:
SignalModified
Example:
UpdateWithCheckout
Example:
ValuesFromPredicate
Example:
Last updated

