canCache method

bool canCache(
  1. T entity
)

Pure function which will decide based on given predicate if entity will be cached

Implementation

bool canCache(T entity) => _predicate(entity);