Use move_to_end to update key recency
Since Python 3.2 we can use move_to_end
to update the order of the underlying OrderedDict
used by the LRUCache.
Since Python 3.2 we can use move_to_end
to update the order of the underlying OrderedDict
used by the LRUCache.