/** * (non-PHPdoc) * @see \Koldy\Cache\Driver\AbstractCacheDriver::has() */ public function has($key) { $this->checkKey($key); $select = new Select($this->config['table']); $select->setConnection($this->config['connection']); $select->field('expires_at')->where('id', $key); $cacheRecord = $select->fetchFirst(); if ($cacheRecord === false) { return false; } return $cacheRecord['expires_at'] > time(); }