Good examples of value types

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed May 6 11:05:55 PDT 2015


On Wednesday, 6 May 2015 at 17:01:05 UTC, Luís Marques wrote:
> That's sounds like a great story! What kind of "values" were 
> you caching?

Without going into the details, we had entries in a DB, counting 
in the millions in the working set. Some of them where hammered 
heavily, most of them were only needed an handful of time. 
Problem is, there was no way upfront to know which ones, so we 
add there entries in a local cache, so we can find the heavily 
used ones in the cache, and fallback on the DB for the less 
commonly used ones.


More information about the Digitalmars-d mailing list