WREN.SCRIPT

WREN.SCRIPT LOAD script
WREN.SCRIPT EXISTS sha1 [sha1 ...]
WREN.SCRIPT FLUSH [ASYNC | SYNC]

Manage the Wren script cache used by WREN.EVAL and WREN.EVALSHA. Behavior mirrors SCRIPT, on a cache that is independent of the PUC-Lua (SCRIPT) and Luau (LUAU.SCRIPT) caches.

Example

> WREN.SCRIPT LOAD "return [1, 2, 3].map{|n| n * 2}.toList"
"a1b2c3..."

> WREN.SCRIPT EXISTS a1b2c3...
1) (integer) 1

> WREN.SCRIPT FLUSH
OK

See also