Changes

Jump to navigation Jump to search
15 bytes removed ,  20:59, 30 January 2023
no edit summary
* data of lazy items will be retrieved and cached inside the item.
* non-lazy items, or lazy items with cached data, will simply be passed through.
* If {{Code|$lazy}} is set to {{Code|true()}}, caching will be is deferred until the data is eventually requested. Streaming will be disabled: Data will always be cached before a stream is returned.Caching is advisable if an item will be is processed more than once, or if the data may not be available anymore at a later stage.
|- valign="top"
| '''Example'''
|In the following example, a file will be is deleted before its content is returned. To avoid a “file not found” error when serializing the result, the content must be cached:
<syntaxhighlight lang="xquery">
let $file := 'data.txt'
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu