public function __construct($type = '', $rootDir = '', $env = '', $active = false, $cacheTime = '', $securityKey = null)
{
$this->env = $env;
$this->cacheDir = $this->createDir($rootDir, $env);
$this->active = $active;
$this->cacheTime = $cacheTime;
if (is_null($securityKey)) {
$securityKey = 'cache.storage.' . sha1(__FILE__);
}
phpFastCache::setup("storage", $type);
phpFastCache::setup("path", $this->cacheDir);
phpFastCache::setup("securityKey", $securityKey);
$this->phpFastCache = new phpFastCache($type);
}