cacheFactory samples