public function __construct($cacheDir)
{
$cacheDir = $cacheDir . '/';
if (!is_dir($cacheDir)) {
throw new Exception('The cache directory ' . $cacheDir . ' does not exists.' . 'The cache directory must be writable by the server.');
}
if (!is_writable($cacheDir)) {
throw new Exception('The cache directory ' . $cacheDir . ' must be writable ' . 'by the server.');
}
$options = array('cacheDir' => $cacheDir, 'lifeTime' => $this->getLifeTime(), 'automaticSerialization' => true);
$this->cache = new TCache_Lite($options);
}