public function ApcCache::set

Overrides CacheInterface::set

See also

CacheInterface::set()

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ApcCache.php, line 48

Class

ApcCache
Uses APC to cache files

Namespace

Assetic\Cache

Code

public function set($key, $value) {
  $store = apc_store($key, $value, $this->ttl);
  if (!$store) {
    throw new \RuntimeException('Unable to store "' . $key . '" for ' . $this->ttl . ' seconds.');
  }
  return $store;
}