Update cacheFactory.js

Updated the doc.