intelligentplant / AppStoreConnect.Adapters

Allows Intelligent Plant App Store Connect to query 3rd party systems
https://appstore.intelligentplant.com
MIT License
0 stars 0 forks source link

Add key/value store write buffer helper #361

Closed wazzamatazz closed 8 months ago

wazzamatazz commented 8 months ago

Adds a new KeyValueStoreWriteBuffer class to DataCore.Adapter.Abstractions.

KeyValueStoreWriteBuffer allows IKeyValueStore implementations to put pending write and delete actions in an in-memory buffer that invokes a callback to flush the pending changes on a periodic basis, or if the number of pending changes or the overall byte size of the changes hit their respective limits.

The SQLite-based store has been modified to replace its own write buffer with KeyValueStoreWriteBuffer and the file system-based store can now use the same write buffer.