cache — Create cached images

    Method to create a new cached image instance from a Closure callback. Pass a lifetime in minutes for the callback and decide whether you want to get an Intervention Image instance as return value or just receive the image stream.

    A closure containing the operations on an image, defining the cached image.

    Decide if you want the method to return an Intervention Image instance or (by default) the image stream.