Repository Pattern — A Collection of Stored Objects
The Repository Pattern: the rest of a program treats its stored objects as a collection, and one object does the storing. A library's books kept in memory and in a text file behind one interface, in six languages, and what goes wrong when a change is not saved.