Pebble App Framework: Phone API
    Preparing search index...

    Function forget

    • Empties the cache because the face moved to another provider while nothing was running, unless the cache was already saved under that provider.

      A cache with no provider recorded reads as whichever provider loads it, so a move the feature never saw would hand the old provider's stamps and strip to the new one. A cache the new provider saved itself is kept, so running this again after the first fetch spends nothing.

      Parameters

      • storage: CacheStorage

        Where the cache lives, normally localStorage.

      • provider: string

        The provider the face uses now, in any case.

      Returns void