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

[ios] Add an API for setting the ambient cache size #3437

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
    iOS
    on Jan 5, 2016
  2. 1ec5 commented on Jan 5, 2016

    @1ec5
    Contributor

    Should the SDK pick a default (other than kMaximumCacheEntrySize)? This doesn’t sound like something we could include in setup steps, because developers would have no feel for a good maximum cache size, at least initially.

  3. tmpsantos commented on Jan 6, 2016

    @tmpsantos
    ContributorAuthor

    kMaximumCacheEntrySize stands for the maximum size of the an individual entry in the cache. The default today is 5MB which is quite big and very unlikely to hit considering that our vector tiles and raster tiles are relatively small.

    The default size for the cache is 0 which stands for unlimited (like it was before). iOS could set its own default at the moment it creates the SQLiteCache object.

  4. 1ec5 commented on Jan 6, 2016

    @1ec5
    Contributor

    OK, so we need to come up with a reasonable default to bake into the iOS SDK. What factors should we account for?

  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. added
    Android
    on Jul 18, 2016
  7. changed the title [-][iOS] Add an API for setting the cache size[/-] [+]Add an API for setting the ambient cache size[/+] on Jul 18, 2016
  8. friedbunny commented on Jul 18, 2016

    @friedbunny
    Contributor

    This feature does not appear to currently exist for Android, so I’ve changed the issue name and added the Android tag.

  9. jfirebaugh commented on Jul 18, 2016

    @jfirebaugh
    Contributor

    I think #3436 was intended to be the parallel issue for Android.

  10. removed
    Android
    on Jul 18, 2016
  11. friedbunny commented on Jul 18, 2016

    @friedbunny
    Contributor

    Errg, OK. Let’s proactively link these issues, if we’re going to cut platform-specific tickets.

  12. changed the title [-]Add an API for setting the ambient cache size[/-] [+][ios] Add an API for setting the ambient cache size[/+] on Jul 18, 2016
  13. 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

    featureiOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions