public RefinableCacheableDependencyInterface::mergeCacheMaxAge($max_age)
Merges the maximum age (in seconds) with the existing maximum age.
The max age will be set to the given value if it is lower than the existing value.
int $max_age: The max age to associate.
$this
\InvalidArgumentException Thrown if a non-integer value is supplied.
Overrides RefinableCacheableDependencyInterface::mergeCacheMaxAge
public function mergeCacheMaxAge($max_age);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!RefinableCacheableDependencyInterface.php/function/RefinableCacheableDependencyInterface::mergeCacheMaxAge/8.1.x