public function add($key, $value, $ttl) { $fileName = $this->getFileName($key); if (file_exists($fileName)) { return false; } return $this->set($key, $value, $ttl); }