Skip to content

Download cache sort

Matthew Sevey requested to merge MSevey:downloadCacheSort into master

previously the addChunkToCache function just deleted the first key it pulled from the chunkCache map. I added a new struct cacheData to the chuckCache map so that a timestamp can be stored with the data byte slice. Now the addChunkToCache function checks the timestamps and deletes the oldest chunk.

Merge request reports