Пример #1
0
 /**
  * @param int $maxage Sets the maximum age of a cache object in seconds.
  *                    If $maxage is =0, the cache is only used if the remote resource has not been modified (403) or
  *                                      if the HTTP request failed.
  *                    If $maxage is >0, the cache is always used if it's younger than $maxage seconds.
  *                    If $maxage is <0, the cache is always used, no matter its age.
  */
 public function __construct(array $options = array(), $maxage = 0)
 {
     parent::__construct($options);
     $this->maxage = $maxage;
 }