read method

  1. @override
Future<Object?> read(
  1. String key
)
override

Implementation

@override
Future<Object?> read(String key) async {
  final raw = await client.command(<String>['GET', _k(key)]);
  if (raw is! String) return null;
  final decoded = jsonDecode(raw);
  return decoded is Map<String, Object?> ? decoded['v'] : null;
}