getters and setters for cacheFactory