Is undo / redo of ocaf implemented by saving serialized data?

I used the Tdocstd_Document of ocaf to save the attributes. For example, I saved a string by TDataStd_AsciiString. Then I clicked the redo function of the ocaf, I found that there would a empty string storaged in the document. So did it mean that It was not removed from memory?