Lines Matching refs:resource
36 * @param string $resource A cache key
40 public function has($resource) argument
42 return file_exists($this->getSourcePath($resource));
48 * @param string $resource A cache key
51 public function set($resource, $value) argument
53 $path = $this->getSourcePath($resource);
61 …if (false === @file_put_contents($path, sprintf("<?php\n\n// $resource\nreturn %s;\n", var_export(…
71 * @param string $resource A cache key
75 public function get($resource) argument
77 $path = $this->getSourcePath($resource);
80 throw new \RuntimeException('There is no cached value for '.$resource);
89 * @param string $resource A cache key
93 public function getTimestamp($resource) argument
95 $path = $this->getSourcePath($resource);
98 throw new \RuntimeException('There is no cached value for '.$resource);
113 * @param string $resource A cache key
117 private function getSourcePath($resource) argument
119 $key = md5($resource);