It worked after doing the following:
in the config file;
'frontendcacheDir' => __DIR__ . '\..\..\project\cache\frontend\frontend',
in the module class
$volt->setOptions(array(
'compiledPath' => $config->application->frontendcacheDir,
'compiledSeparator' => '_'
));