protected function setKeyTTL($key, $ttl)
{
try {
if ($this->acquire_key($this->ttl_table_name, $AutoUnlocker)) {
$ttl_table = $this->Couchbase->get($this->ttl_table_name);
$ttl_table[$key] = $ttl;
$this->Couchbase->set($this->ttl_table_name, $ttl_table);
$this->unlock_key($AutoUnlocker);
}
} catch (\Exception $Exception) {
$this->ReportError('Can not set ttl for key', __LINE__);
return false;
}
}