Lines Matching refs:key
39 public function load(string $key): void argument
41 if (is_file($key)) {
42 @include_once $key;
46 public function write(string $key, string $content): void argument
48 $dir = \dirname($key);
60 $tmpFile = tempnam($dir, basename($key));
61 if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $key)) {
62 @chmod($key, 0666 & ~umask());
67 @opcache_invalidate($key, true);
69 apc_compile_file($key);
76 throw new \RuntimeException(\sprintf('Failed to write cache file "%s".', $key));
81 $key = $this->generateKey($name, $cls);
82 if (!@unlink($key) && file_exists($key)) {
83 throw new \RuntimeException(\sprintf('Failed to delete cache file "%s".', $key));
87 public function getTimestamp(string $key): int argument
89 if (!is_file($key)) {
93 return (int) @filemtime($key);