Support::Cache should offload to disk
Created by: Zapotek
Update the Support::Cache
classes to offload pruned entries to disk, rather than removing them completely.
- Use one file per instance.
- Keep the file-descriptor open.
- Delete via a finalizer
- Serialize using MessagePack.
- Keep track of entry positions by offsets and sizes.
- To be used for
#seek
ing and#read
ing.
- To be used for
This should have a massive impact on RAM consumption, CPU utilization and overall performance as less entries will be stored in memory but a lot more will cached.