getByKeys method

Future<List<Map<String, dynamic>?>> getByKeys(
  1. String name,
  2. Iterable<String> keys
)

Returns the json maps of the provided keys

  • name: The partition name
  • keys: The list of cache keys

Returns the key json map

Implementation

Future<List<Map<String, dynamic>?>> getByKeys(
    String name, Iterable<String> keys) {
  final partition = _partition(name);

  if (partition != null) {
    return partition.records(keys).get(_db);
  }

  return Future.value(const <Map<String, dynamic>?>[]);
}