You are here

public function Query::getCacheMaxAge in Search API 8

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides CacheableDependencyTrait::getCacheMaxAge

File

src/Query/Query.php, line 785

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

public function getCacheMaxAge() {
  return $this->cacheMaxAge;
}