and method

CachePolicy<T> and(
  1. CachePolicy<T> other
)

Convenience method to require other policy

Implementation

CachePolicy<T> and(CachePolicy<T> other) =>
    CachePolicy((entity) => this.canCache(entity) && other.canCache(entity));