# Intent Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later. * [memorize](https://github.com/r-lib/memoise) package. * [cachem](https://github.com/r-lib/cachem) package. * [The python equivalent: `@functools.cache`](https://docs.python.org/3/library/functools.html) # Example  