public function setItem($key, $value) { //save the value to the local class cache parent::setItem($key, $value); $fileName = $this->getFileName($key); $this->writeToFile($fileName, $value); }