public static < K , V > Configuration newMutable ( TimeUnit expiryTimeUnit , long expiryDurationAmount ) { return new MutableConfiguration < K , V > ( ) . setExpiryPolicyFactory ( factoryOf ( new Duration ( expiryTimeUnit , expiryDurationAmount ) ) ) ; }
Build a new mutable javax . cache . configuration . Configuration with an expiry policy