<?php
namespace framework\components\cache;
use framework\base\Component;
abstract class Cache extends Component
{
protected $_handle = null;
public function getCacheKey($name)
{
return \getModule().($this->_appConf['prefix'] ?? '') . $name;
}
public function getHandle()
{
return $this->_handle;
}
public function __destruct()
{
if ($this->_handle != null) {
$this->_handle->close();
$this->_handle = null;
}
}
}