delete method

Future<bool> delete(
  1. String key, {
  2. String? subKey,
})

Implementation

Future<bool> delete(String key, {String? subKey}) {
  key = _convertMd5(key);
  if (null != subKey) subKey = _convertMd5(subKey);

  return _getCacheFutureResult(
      _memoryCacheStore,
      _diskCacheStore,
      _memoryCacheStore?.delete(key, subKey: subKey),
      _diskCacheStore?.delete(key, subKey: subKey));
}