yangxu998 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Calculating cache Hit Miss Ratio #662

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
how to use MapMaker to calculate the cache Hit Miss Ratio, i cannot see any 
documentation in the wiki

Original issue reported on code.google.com by anish2g...@gmail.com on 14 Jul 2011 at 5:04

GoogleCodeExporter commented 9 years ago
In r10, you will be able to use the new com.google.common.cache package 
(http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/cache
/package-summary.html) and its CacheBuilder to create a Cache rather than using 
MapMaker. A Cache has a stats() method that returns a CacheStats object from 
which you can get hit/miss ratio among other things.

In the future, please ask questions like this on StackOverflow 
(http://stackoverflow.com/questions/ask) rather than here.

Original comment by cgdec...@gmail.com on 14 Jul 2011 at 5:51

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09