Replace value of the existing item.
string $key:
mixed $var:
integer $flag:
integer $expire:
boolean
public function replace($key, $var, $flag = null, $expire = null) {
if (!$this->connected) {
return false;
}
if (isset($this->storage[$key])) {
$this
->storeData($key, $var);
return true;
}
return false;
}