remove method

  1. @override
Future remove(
  1. String? correlationId,
  2. String key
)

Removes a value from the cache by its key.

  • correlationId (optional) transaction id to trace execution through call chain.
  • key a unique value key. Return Future function that receives an null for success Throws error

Implementation

@override
Future<dynamic> remove(String? correlationId, String key) async {
  if (!_checkOpened(correlationId)) return;
  return await _client!.send_object(['DEL', key]);
}