public function get($key) { $out = null; // Read the json encoded value from disk if it exists. $path = $this->getFileName($key); if (file_exists($path)) { $out = file_get_contents($path); $out = json_decode($out); } return $out; }