/** * Retrieves Soap Actions from cache * * @param string $service * * @return array|null Soap Action array of strings, or NULL if action not cached */ private function getCachedSoapActions($service) { if (!$this->client->isCacheEnabled()) { return null; } $cache = $this->client->cache; $soapActions = $cache->get($service . '_soap_actions'); return $soapActions; }
public function getCachedSecurityToken($service, &$securityToken) { if ($this->client->isCacheEnabled()) { $cacheKey = $this->getSecurityTokenCacheKey($service); $isDefined = $this->client->cache->exists($cacheKey); if ($isDefined) { $securityToken = $this->client->cache->get($cacheKey); } return $isDefined; } return false; }