Add an item to the server only if such key doesn't exist at the server yet.
string $key:
mixed $var:
integer $flag:
integer $expire:
boolean
public function add($key, $var, $flag = null, $expire = null) {
if (!$this->connected) {
return false;
}
if (!isset($this->storage[$key])) {
$this
->storeData($key, $var);
return true;
}
return false;
}