least recently usedelement. It is simple and easy to implement and sounds fair but for caching
frequency of usagehas more weight than when it was last accessed which brings us to the next algorithm.
Eventby their associated IDs. The following code snippet comprise a helper function to get a respective document from MongoDB