title: Should a Cache object read directly from filesystem?
body: <p>I'm building a server that implement the tftp protocol. My homework requests the creation of a cache of recent requested files. What I would like to understand is about design, watch the example:</p>
  
  <p>Server request file to the cache
  The cache doesn't have file
  The cache read from filesystem the file
  The cache serves the file to the server</p>
  
  <p>Should the cache read from the file system or should the server read from the cache and if the file is missing, read it from the file system and put it in the cache?</p>