Actually, getQueryCacheFactory was just renamed (on both Settings and SessionFactoryOptions) to getTimestampsCacheFactory. The returned contract changed significantly anyway from QueryCacheFactory to TimestampsCacheFactory.