public void invalidate() {
        synchronized (monitor) {
            this.nextRefresh = Instant.MIN;
        }
    }
Supplier that caches the value for a given duration with ability to invalidate on demand.
Is thread safe.

@author freva
vespajlib/src/main/java/com/yahoo/lang/CachedSupplier.java