Open rom1504 opened 8 years ago
https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU would be a better policy IMO
Yeah I was thinking about the case of a server where the spawn point might be unloaded with LRU if everyone disconnects and someone go explore somewhere far. But LFU has its own issues.
LRU seems like a simple policy that should work, especially if the cache is big enough (like 20x20 chunks)
it's now possible since we have chunk loading/unloading.
One way to do it would be using the timestamp stored in region files