Question d’entretien chez Apple

How to implement a least recently used cache in python