public function setCacheInvalidationSettings($settings) {
        $this->cacheInvalidationSettings = is_string($settings) ? $settings : json_encode($settings, JSON_PRETTY_PRINT);
        return $this;
    }
public function setCacheInvalidationSettings($settings) {
        $this->cacheInvalidationSettings = is_string($settings) ? $settings : json_encode($settings, JSON_PRETTY_PRINT);
        return $this;
    }
public function setCacheInvalidationSettings ( $ settings ) { $ this -> cacheInvalidationSettings = is_string ( $ settings ) ? $ settings : json_encode ( $ settings , JSON_PRETTY_PRINT ) ; return $ this ; }
Sets the cache invalidation settings.

@param  array|string $settings
@return $this
Sets the cache invalidation settings .