getdel method
GETDEL command (get value and delete value)
Implementation
@override
Future<V?> getdel(K key) async {
final keyString = keyCodec.encode<K>(key);
_connection.sendCommand(Resp(['GETDEL', keyString]));
final res = await _connection.receive();
res.throwIfError();
final str = res.stringValue;
if (str == null) {
return null;
}
return valueCodec.decode<V>(str);
}