or method

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

Convenience method to concatenate other policy

Implementation

CachePolicy<T> or(CachePolicy<T> other) =>
    CachePolicy((entity) => this.canCache(entity) || other.canCache(entity));