This repository contains an implementation od LRU cache
- Maven 3.8.3
- JDK 17.0.1
- Uses A LinkedList to store the order of the cache
- Uses A hasmap to easily know wheter an element is or not in the cache
Go to root folder LRUCache and run:
mvn clean install After that the jar LRUCache-0.1.jar is generated in the LRUCache\target folder
Go to the folder LRUCache\target and run:
java -jar LRUCache-0.1.jarThis will run the tests included in this library
Go to root folder LRUCache and run:
mvn clean install test siteGo to the folder LRUCache\target\site\jacoco and open the file:
index.htmlTo check the generated coverage report