default, collapsed with duration (click to open)

default, open

  1. Understand the question

    They want a comparison of two caching strategies and a typed example, so the answer needs a short table and one snippet.

  2. Weigh the trade-offs

    Edge caching wins on read-heavy traffic across regions; in-memory is simpler for one region but goes cold on every deploy.

  3. Draft the example

    Keep it small: a typed Feed, a TTL parameter and a loader callback so it can be tested without a network.

default, streaming then settled

  1. Understand the question

    They want a comparison of two caching strategies and a typed example, so the answer needs a short table and one snippet.

agent trace, open

  1. Search the docsSearch0.4s

    feed caching ttl

  2. Read the caching guideWeb0.9s

    example.com/docs/caching

  3. Open the feed moduleFile0.1s

    src/feed.ts

  4. Count items per localeDatabase0.3s

    select locale, count(*) from feed_items

  5. Run the unit testsTerminal3.1s

    npm test -- feed

agent trace, streaming then settled

  1. Search the docsSearch

    feed caching ttl