@Override
  public synchronized boolean contains(Predicate<K> predicate) {
    return !mCachedEntries.getMatchingEntries(predicate).isEmpty();
  }
Check if any items from the cache whose key matches the specified predicate.

@param predicate returns true if an item with the given key matches
@return true is any items matches from the cache
imagepipeline-base/src/main/java/com/facebook/imagepipeline/cache/LruCountingMemoryCache.java