Changes

Jump to navigation Jump to search
213 bytes added ,  14:39, 18 July 2019
|-
| width='120' | '''Signatures'''
|{{Func|update:output|$result items as item()*|empty-sequence()}}
|-
| '''Summary'''
|This function can be used if {{Option|MIXUPDATES}} is a helper function for returning results in not enabled, and if values need to returned within an updating expression. : The argument of the function will be evaluated, and the resulting supplied {{Code|$items }} will be cached and returned at the very end, i.e., after the all updates on the ''pending update list'' have been processed. If one of the supplied item will be items is affected by an update, a copy will be created and cached instead.
|-
| '''Examples'''
==update:cache==
 
{{Mark|Updated with Version 9.3}}: {{code|$reset}} argument added.
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|update:cache||item()*}}<br/>{{Func|update:cache|$reset as xs:boolean|item()*}}
|-
| '''Summary'''
|Returns the items that have been cached by [[#{{Function|Update|update:output}}. The output cache can optionally be {{Code|update:output]]$reset}}. It The function can be used to check which items will eventually be returned as result of an updating function.<br/>This function is ''non-deterministic'': It will return different results before and after items have been cached. It is e. g. useful when writing [[Unit Module|unit tests]].
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu