I would like a caching library that manages based on cost weights.
I have a lot of different types of data with exact same structure to cache, but it the costs differ to cache each of different types, some are very cheap to retrieve back, some are expensive.
I want a way where I can add a weight to the caching library such it can efficiently cache to minimise cache misses.