Design Pattern: Memento Pattern in PHP

Memento pattern keeps track of the internal state of an object, so that the program can track back and restore to any previous state of the object. This pattern enables us to implement the undo of any state change. This article demonstrates Memento pattern implementations in PHP.

Design Pattern: Memento Pattern in TypeScript

Memento pattern maintains a list of state changes performed on an object. This way, we can revert back and can go back to any point of object state history. The internal state is encapsulated inside the object, and the undo process does not need to be aware of it. This article demonstrates Memento pattern implementations in TypeScript.

Design Pattern: Memento Pattern in Go

Memento pattern is used to store the sequence/history of actions performed over time on an object. By storing the history of the state change of the object, we can revert the changes and perform an undo of an action. This article demonstrates Memento pattern implementations in Golang.

Design Pattern: Memento Pattern

Memento pattern is responsible for maintaining the history of state change of an object. By keeping the history, Memento pattern ensures that we can check the object state history at any point, and also can revert any state change and move to the previous state.

Design Pattern: Memento Pattern in Java

Memento pattern is used to store the history of state changes of an object so that that history can be used to track back the change or be used for some other purpose. This article demonstrates Memento pattern implementations in Java.