# Cache¶

The module openmmtools.cache implements a shared LRU cache for OpenMM Context objects that tries to minimize the number of objects in memory at the same time.

## Cache objects¶

 LRUCache A simple LRU cache with a dictionary-like interface that supports maximum capacity and expiration. ContextCache LRU cache hosting the minimum amount of incompatible Contexts. global_context_cache A shared ContextCache that minimizes Context object creating when using MCMCMove.