setInfo method

  1. @override
Future<void> setInfo(
  1. String name,
  2. String key,
  3. I info
)

Sets the partition info indexed by key.

  • name: The partition name
  • key: The key
  • info: The info

Implementation

@override
Future<void> setInfo(String name, String key, I info) {
  return _getEntryFromStore(name, key).then((entry) {
    if (entry != null) {
      entry.updateInfo(info);
      return _adapter
          .put(name, key, _writeEntry(entry))
          .then((value) => null);
    }
    return Future<void>.value();
  });
}