fixed cache.java so it compiles