code: function cache (options) {
    if (is.bool(options)) {
      if (options) {
        // Default cache settings of 50MB, 20 files, 100 items
        return sharp.cache(50, 20, 100);
      } else {
        return sharp.cache(0, 0, 0);
      }
    } else if (is.object(options)) {
      return sharp.cache(options.memory, options.files, options.items);
    } else {
      return sharp.cache();
    }
  }
docs: Gets or, when options are provided, sets the limits of _libvips'_ operation cache.
  Existing entries in the cache will be trimmed after any change in limits.
  This method always returns cache statistics,
  useful for determining how much working memory is required for a particular task.
  
  @example
  const stats = sharp.cache();
  @example
  sharp.cache( { items: 200 } );
  sharp.cache( { files: 0 } );
  sharp.cache(false);
  
  @param {Object|Boolean} [options=true] - Object with the following attributes, or Boolean where true uses default cache settings and false removes all caching
  @param {Number} [options.memory=50] - is the maximum memory in MB to use for this cache
  @param {Number} [options.files=20] - is the maximum number of files to hold open
  @param {Number} [options.items=100] - is the maximum number of operations to cache
  @returns {Object}