putMany<T> method

  1. @override
Future<void> putMany<T>(
  1. Map<String, T> objects
)

Implementation

@override
Future<void> putMany<T>(Map<String, T> objects) async {
  final values = objects.entries
      .fold([], (acc, object) => [...acc, object.key, jsonEncode(object)]);
  await Command(_connection).send_object(['MSET', values.join(' ')]);
}