set cacheLoaderClassName for the second constructor. Otherwise cannot create cache with mongodb cache store with mongodb connection parameters