Skip to content
Snippets Groups Projects
Commit a2be1e6e authored by Jakob Schmidt's avatar Jakob Schmidt
Browse files

Update nach upstream

parent 99915923
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ declare function my-cache:doc($docURI as xs:string, $callback as function() as i
typeswitch($lease)
case xs:dayTimeDuration return
($currentDateTimeOfFile + $lease) lt current-dateTime()
or empty($lease)
or empty($currentDateTimeOfFile)
case empty() return true()
case function() as xs:boolean return $lease($currentDateTimeOfFile)
default return error($my-cache:UNSUPPORTED_PARAMETER_VALUE_ERROR, 'The parameter value for $lease must be xs:dayTimeDuration()? or a function reference which must take exactly one argument.')
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment