Skip to content

v3.1.0-pre.1300

@wazzamatazz wazzamatazz tagged this 21 Nov 12:21
* Add key/value store write buffer helper

`KeyValueStoreWriteBuffer` is a new helper class that replicates (and extends) the write buffering in the SQLite key/value store so that the buffering can be used in any implementation that requires it.

In addition to periodic flushing of pending changes, `KeyValueStoreWriteBuffer` also allows automatic flushing to be configured when the number of pending changes exceeds a limit or the total byte size or the pending changes exceeds a limit.

The SQLite-based store has been rewritten to use `KeyValueStoreWriteBuffer` instead of its own implementation.

* Bump miscellaneous package references

* Infer if write buffer is available

Instead of setting a `_useBackgroundFlush` field to specify if a write buffer is being used, adds a new `UseWriteBuffer` property that returns `true` if the `_writeBuffer` is not `null`.

* File system KV store can now use a write buffer
Assets 2