add least-recently used functionality to the server.