/** * @param string $key * @param mixed $var */ public function prepend($key, $var) { try { $meta = $this->bucket->prepend($key, $var); KalturaLog::debug("key [{$key}] var [" . print_r($var, true) . "] meta [" . print_r($meta, true) . "]"); return $meta->value; } catch (CouchbaseException $e) { } return false; }
/** * @param string $key * @param mixed $var */ public function prepend($key, $var) { $meta = $this->bucket->prepend($key, $var); if ($this->debug) { KalturaLog::debug("key [{$key}] var [" . print_r($var, true) . "] meta [" . print_r($meta, true) . "]"); } return $meta->value; }