public final Optional<T> getIfPresent() {
        return Optional.ofNullable(this.value);
    }
Simple one element cache implementation.

@param <T> the type being stored
common/src/main/java/me/lucko/luckperms/common/cache/Cache.java