You are here

public function RestClient::getLongTermCacheLifetime in Salesforce Suite 5.0.x

Getter for long term cache lifetime.

Return value

int Long term cache lifetime, in seconds.

Overrides RestClientInterface::getLongTermCacheLifetime

1 call to RestClient::getLongTermCacheLifetime()
RestClient::getVersions in src/Rest/RestClient.php
Wrapper for "Versions" resource to list information about API releases.

File

src/Rest/RestClient.php, line 161

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce\Rest

Code

public function getLongTermCacheLifetime() {
  return $this->immutableConfig
    ->get('long_term_cache_lifetime') ?? static::LONGTERM_CACHE_LIFETIME;
}