src/Option/FilenameTrait.php
protected function getFilename($key): string
    {
        $id = $this->keyToId($key);
        $generator = $this->getFilenameOption();

        return $this->cacheDir . DIRECTORY_SEPARATOR . $generator($id);
    }
protected function getFilename($key): string
    {
        $id = $this->keyToId($key);
        $generator = $this->getFilenameOption();

        return $this->cacheDir . DIRECTORY_SEPARATOR . $generator($id);
    }
protected function getFilename ( $ key ) : string { $ id = $ this -> keyToId ( $ key ) ; $ generator = $ this -> getFilenameOption ( ) ; return $ this -> cacheDir . DIRECTORY_SEPARATOR . $ generator ( $ id ) ; }
Create a filename based on the key

@param string|mixed $key
@return string
Create a filename based on the key