Add a close() method that closes the current file, guaranteeting that
any recent updates are written to the file. Remove seek() and tell() at the beginning of read_index() because their results are not used. Add main() that prints the contents a cache file when executed as a script. Add a log call when the cache is being read.
Showing
Please register or sign in to comment