Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[Android] Add an API for setting the cache size #3436

Closed

Description

@tmpsantos

After 6d0b01c it is possible to define a maximum cache size. This API should be exported otherwise the cache will grown indefinitely.

Activity

  1. added
    Android
    on Jan 5, 2016
  2. added this to the android-v3.1.0 milestone on Jan 5, 2016
  3. tobrun commented on Jan 6, 2016

    @tobrun
    Member

    @tmpsantos
    I'm seeing 2 additions in 6d0b01c

    • Maximum cache size
    • Maximum cache size entry

    Couple questions:

    • Should I expose only the former as an API or both?
    • Should I provide a default value for maximum cache size myself or is indefinitely the default?

    TODO:

    • expose API in MapView.java through setter/getter (attribute?)
    • incase of default, add that one to MapboxConstants
    • expose API in NativeMapView.java
    • take a trip down C++ land and add to jni.cpp, native_map_view.cpp,..
  4. tmpsantos commented on Jan 7, 2016

    @tmpsantos
    ContributorAuthor

    Maximum cache size entry

    I don't think this one is needed. The default (5MB) is mostly for "protecting" the cache from adding an entry that is way too big. We don't have tiles that big.

  5. jfirebaugh commented on Jan 8, 2016

    @jfirebaugh
    Contributor

    Please hold on this until design and implementation of offline settles down. We have too much already moving in this area.

  6. removed this from the android-v3.1.0 milestone on Jan 8, 2016
  7. removed their assignment
    on Mar 6, 2016
  8. added this to the android-v4.1.0 milestone on Mar 6, 2016
  9. modified the milestone: android-v4.1.0 on Mar 18, 2016
  10. 1ec5 commented on Jun 26, 2017

    @1ec5
    Contributor

    After 6d0b01c it is possible to define a maximum cache size.

    This API is going away in #9371.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidfeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions