class AbstractCache implements IDataCache<T> {

  @Override
  public boolean dataIsCachable(T data) {
    return cachingRule.test(data);
  }

  public  AbstractCache(S entries, IDataStorage<T> cachedStorage, long maxCacheSize,
      Predicate<T> cachingRule);

}