Lines Matching refs:key
43 public function load($key) argument
45 if (file_exists($key)) {
46 @include_once $key;
50 public function write($key, $content) argument
52 $dir = \dirname($key);
64 $tmpFile = tempnam($dir, basename($key));
65 if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $key)) {
66 @chmod($key, 0666 & ~umask());
71 @opcache_invalidate($key, true);
73 apc_compile_file($key);
80 throw new \RuntimeException(sprintf('Failed to write cache file "%s".', $key));
83 public function getTimestamp($key) argument
85 if (!file_exists($key)) {
89 return (int) @filemtime($key);