Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / docs / setCachedContent

Function: setCachedContent()

setCachedContent(url, content): void

Defined in: packages/b2c-tooling-sdk/src/docs/content-cache.ts:142

Stores freshly fetched content in both cache tiers. Disk write is best-effort.

Parameters

url

string

The fetch URL used as the cache key

content

string

The fetched content to cache

Returns

void

Released under the Apache-2.0 License.