public function add($id, $value, $expire = 0, $dependency = null) { if (empty($value) && $expire === 0) { return false; } $data = array($value, $dependency); return $this->addValue($this->generateUniqueKey($id), $data, $expire); }