protected function save_TTL_table($table)
{
if (!empty($table)) {
$t = time();
foreach ($table as $key => $ttl) {
if ($ttl !== 0 && $ttl < $t) {
unset($table[$key]);
}
}
}
try {
$this->Couchbase->set($this->ttl_table_name, $table, 0);
} catch (\Exception $Exception) {
$this->ReportError('Couchbase can not save ttl table', __LINE__);
}
}