code: @Deprecated
    public CacheConfigurationBuilder<K, V> withExpiry(org.ehcache.expiry.Expiry<? super K, ? super V> expiry) {
      return withExpiry(convertToExpiryPolicy(requireNonNull(expiry, "Null expiry")));
    }
docs: Adds {@link org.ehcache.expiry.Expiry} configuration to the returned builder.
  <p>
  {@code Expiry} is what controls data freshness in a cache.
  
  @param expiry the expiry to use
  @return a new builder with the added expiry
  
  @deprecated Use {@link #withExpiry(ExpiryPolicy)} instead