/** * (non-PHPdoc) * @see \Koldy\Cache\Driver\AbstractDriver::deleteOld() */ public function deleteOld($olderThenSeconds = null) { if ($olderThenSeconds === null) { $olderThenSeconds = $this->defaultDuration; } $delete = new Delete($this->config['table']); $delete->setConnection($this->config['connection'])->where('expires_at', '<=', time())->exec(); }