create abstract method

Future<int?> create(
  1. K key,
  2. V value, {
  3. bool skipCommit = false,
})

If no mapping exists for key, associates it with value and returns the commit-log sequence number; otherwise behaviour is implementation-defined (typically throws).

Returns the commit-log sequence number assigned to this write, or null if no sequence number was produced.

Throws a DataStoreException if the underlying store fails.

Implementation

Future<int?> create(K key, V value, {bool skipCommit = false});