code: public function setCacheOptions($cacheOptions)
      {
          if ($cacheOptions instanceof CacheOptionsInterface) {
              $this->cacheOptions = $cacheOptions;
          } elseif (is_array($cacheOptions)) {
              $this->cacheOptions = new CacheOptions($cacheOptions);
          } else {
              throw new Exception\InvalidArgumentException(
                  sprintf(
                      '%s expects parameter 1 to be array or an instance of HtSettingsModule\Options\CacheOptionsInterface, %s provided instead',
                      __METHOD__,
                      is_object($cacheOptions) ? get_class($cacheOptions) : gettype($cacheOptions)
                  )
              );
          }
  
          return $this;
      }
docs: Sets options of cache
  
  @param  array|CacheOptionsInterface $cacheOptions
  @return self