I have a bunch of files that are being read by another bunch of threads. Some parts of files get read multiple times using multiple file opens. I'd like to have a sort of caching file stream.
If part of the file was read before, all subsequent reads would come from cache, otherwise file part would be read and content added to cache.
Files do not change, so there is no need to invalidate cache.
Is anyone aware of such class being available somewhere or similar mechanism that would help with such problem?