Skip to main content

api.compareAndSetInstanceCache()

Atomically updates a cache key only when the current value matches ‘expected’. Notes:
  • Unavailable with readOnly: true (throws an error).

Signature

Example

See all api methods or runtime basics.
Last modified on November 8, 2026