You are here

public function EntityconnectCache::set in Entity connect 8.2

Stores the key/data pair in our PrivateTempStore.

Parameters

string $key: The cache key.

mixed $data: The cache data.

Throws

\Drupal\Core\TempStore\TempStoreException

File

src/EntityconnectCache.php, line 96

Class

EntityconnectCache
A custom class for managing the Entityconnect cache.

Namespace

Drupal\entityconnect

Code

public function set($key, $data) {
  $this->store
    ->set($key, $data);
}