Skip to content

Latest commit

 

History

History

memento

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Memento

  • It creates a snapshot for the current state to be used for the future roll back.

How it works ?

The originator will save it's state by creating a memento that holds current state of originator. The created memento will be passed to the caretaker. Caretaker is the one holds all the memento, if originator wants to roll back from a specific snapshot then the originator will request for a memento from caretaker then caretaker will give the memento back to originator