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