You are here

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

Getter for short term cache lifetime.

Return value

int Short term cache lifetime, in seconds.

Overrides RestClientInterface::getShortTermCacheLifetime

3 calls to RestClient::getShortTermCacheLifetime()
RestClient::getRecordTypes in src/Rest/RestClient.php
Retrieve all record types for this org.
RestClient::objectDescribe in src/Rest/RestClient.php
Retrieve all the metadata for an object.
RestClient::objects in src/Rest/RestClient.php
Available objects and their metadata for your organization's data.

File

src/Rest/RestClient.php, line 157

Class

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

Namespace

Drupal\salesforce\Rest

Code

public function getShortTermCacheLifetime() {
  return $this->immutableConfig
    ->get('short_term_cache_lifetime') ?? static::CACHE_LIFETIME;
}