modified to use ehcache and changed output format to key setOfValues and added compaction