inspect method

  1. @override
Future<Map<String, dynamic>> inspect()

Implementation

@override
Future<Map<String, dynamic>> inspect() async {
  final keys = await Command(_connection).send_object(['KEYS', '*']);
  final values = await Command(_connection).send_object(['MGET', ...keys]);

  return Map.fromIterables(keys, values.map((e) => jsonDecode(e)));
}