unpin method

  1. @override
Future<bool> unpin(
  1. String sha256, {
  2. String by = BlossomCache.defaultHolder,
})
override

Releases the pin held by by. The blob stays pinned if other holders remain. Returns true if by was removed, false if it held no pin or the blob does not exist.

Implementation

@override
Future<bool> unpin(String sha256, {String by = BlossomCache.defaultHolder}) =>
    _updateHolders(sha256, (holders) => holders.remove(by));