Update Cache.java

Final Version