has method

  1. @override
Future<bool> has(
  1. String key
)

Implementation

@override
Future<bool> has(String key) async {
  final result = await Command(_connection).send_object(['EXISTS', key]);
  return switch (result) {
    0 => false,
    _ => true,
  };
}