public function get($key)
{
/**
* @var \ManaPHP\Cache\Adapter\Db\Model $model
*/
$model = new $this->_model();
$model = $model::findFirst(['hash' => md5($key)]);
if ($model !== false && $model->expired_time > time()) {
return $model->value;
} else {
return false;
}
}