public function add($key, $value, $ttl = 259200, $tags = NULL)
{
$ttl = $this->ttl_to_expiration($ttl);
try {
$result = $this->Couchbase->add($this->prefix . $key, $value, $ttl);
} catch (\Exception $Exception) {
return false;
}
if (!$result) {
return false;
}
$this->setKeyTTL($key, $ttl);
if (!empty($tags)) {
$this->setTags($key, $tags);
}
return true;
}