Cache Management

The amount of data that models road attributes is too large to be stored in the memory of a running application. The Location Library provides a CacheManager to avoid performing the following expensive operations often:

  • Download road attributes from catalogs
  • Make downloaded road attributes compatible with the Location Library

The Location Library uses the CacheManager you created. You don't need to use the CacheManager directly.

Scala
Java
import com.here.platform.location.dataloader.core.caching.CacheManager

val cacheManager = CacheManager.withLruCache()
import com.here.platform.location.dataloader.core.caching.CacheManager;
final CacheManager cacheManager = CacheManager.withLruCache();

For basic use, the above information is helpful. For more information about advanced use, see Data Loaders.

results matching ""

    No results matching ""