any<S extends SnowflakeEntity> static method

CachePolicy<S> any<S extends SnowflakeEntity>(
  1. List<CachePolicy<S>> policies
)

Composes a policy by concatenating multiple other policies from list

Implementation

static CachePolicy<S> any<S extends SnowflakeEntity>(List<CachePolicy<S>> policies) =>
    CachePolicy((entity) => policies.any((policy) => policy.canCache(entity)));