title: Is there a way to use my file system as a cache?
body: <p>I’m am taking a data structures course and am developing a project in java. The project is pretty much complete except for one aspect, implementation of a cache. My professor has been very vague as he is and should be with everything on how to implement this. The only hint he had given is that our operating system has its own file system which in and of itself is a map, and we can use it as a way to create a cache. I will paste the assignment details below. Any help would be greatly appreciated. </p>
  
  <p>Almost forgot. My OS is windows 10</p>
  
  <p>Requirements</p>
  
  <p>This assignment asks you to create a web page categorization program.
  The program reads 20 (or more) web pages. The urls for some of these web pages can be maintained in a control file that is read when the program starts. The others should be links from these pages. (Wikipedia is recommended source.) For each page, the program maintains frequencies of words along with any other related information that you choose.
  The user can enter any other URL, and the program reports which other known page is most closely related, using a similarity metric of your choosing.
  The implementation restrictions are:</p>
  
  <p>Create a cache based on a custom hash table class you implement to keep track of pages that have not been modified since accessed; keep them in local files.
  Use library collections or your own data structures for all other data stores. Read through the Collections tutorial.
  Establish a similarity metric. This must be in part based on word-frequencies, but may include other attributes. If you follow the recommended approach of hash-based TF-IDF, create a hash table storing these.
  A GUI allows a user to indicate one entity, and displays one or more similar ones.</p>