update CacheFactory.java