Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FetchOptions

Hierarchy

  • FetchOptions

Index

Properties

Optional missStrategy

missStrategy: "fulfill" | "stale-revalidate"

What kind of cache miss strategy should be used here.

  • "fulfill" [default]: If the cache misses for any reason, wait until the new value is fetched and return it.
  • "stale-revalidate": If the cache misses due to an expired value, return the expired (stale) value and call the fetcher to update the value in the background.

Optional timeToLive

timeToLive: number

The time to live to set for a fulfilled item

Generated using TypeDoc