public boolean remove(final CacheKey key) {
    Preconditions.checkNotNull(key);
    final EncodedImage encodedImage;
    synchronized (this) {
      encodedImage = mMap.remove(key);
    }
    if (encodedImage == null) {
      return false;
    }
    try {
      return encodedImage.isValid();
    } finally {
      encodedImage.close();
    }
  }
Removes item from the StagingArea.

@param key
@return true if item was removed
imagepipeline/src/main/java/com/facebook/imagepipeline/cache/StagingArea.java