Caching Table Structure - rsanchez-wsu/jfiles GitHub Wiki

Purpose

The purpose of the caching table is just that, caching. As the client browses the server's file system, we should be caching any files/directories the server discovers. As the table grows, the chance of a requested file being in the caching table increases. If the file the client is requesting can be found in the table, the server knows exactly where to retrieve the file from in order to send it to the client. This will greatly cut down on search times. If a file is not found in the caching table, then the server would need to search for the file like normal.

Structure

| fileName | path | |---|---|---|---|---| | testDoc.txt | C:\Users\student\Documents\testDoc.txt | | testPDF.pdf | C:\Users\student\Documents\testPDF.pdf | | letItGo.mp3 | C:\Users\student\Music\letItGo.mp3 |