Skip to main content
Version: 3.27.2

TransactionCacheEntry.body

The body method of the TransactionCacheEntry interface retrieves the cached item contents as a ReadableStream.

Only one stream can be active at a time for a given TransactionCacheEntry. An error will be thrown if a stream is already active for this TransactionCacheEntry.

Syntax

body(options)

Parameters

  • options : object optional
    • start : number
      • The offset from which to start the range.
    • end : number
      • How long the range should be.

Return value

A ReadableStream which contains the cached item contents.