When you perform the add operation on an existing key (not expired), var_dump(add) prints true (this inversion parameter is incorrect) if the get operation has been performed before add. We recommend to determine whether the add operation was successful or not by verifying if the value of getResultCode is 0. If get is not performed before add, the var_dump(add) inversion parameter is correct.
Thank you! We've received your feedback.