CacheMap

Method Detail

create

Creates a new file-backed CacheMap or loads it in from the specified file
if it already exists. The parameters passed in are the same as the
constructor. If useFileParams is true and the file exists, all of your
parameters will be ignored (replaced with those stored in the file
itself). If useFileParams is false then we override the settings in the
file with the ones you specify (except loadFactor and accessOrder) and
reset the stats.

printStats

Print out cache stats to the specified stream. Note that in many cases
treating puts as misses gives a better version of hit percentage than
actually using misses, since it's possible that some of your misses are
because you wind up choosing not to cache the particular value (we output
both versions). Stats are reset when the cache is loaded in from disk
but are otherwise cumulative.