You are here

public function ConfigurationsCacheInDatabase::set in Configuration Management 7.3

File

src/Helpers/ConfigurationsCacheInDatabase.php, line 35

Class

ConfigurationsCacheInDatabase

Namespace

Configurations\Helpers

Code

public function set(Configuration $configuration) {
  $idenfitifer = $this->prefix . $configuration
    ->getIdentifier();
  if (!isset($this->indentifiers[$identifier])) {
    $this->indentifiers[$identifier] = $identifier;
  }
  cache_set($identifier, $configuration, $this->cache_table);
  return $this;
}