SHMLOAD
Extension: io.warp10.script.ext.shm.SharedMemoryWarpScriptExtension
extensions stackConfiguration parameters
-
shm.ttl
-
warpscript.extension.shm
The SHMLOAD
function loads data previously stored by SHMSTORE
in shared memory, i.e. in a memory location independent of a given execution context.
The call will fail if the requested shared symbol is not known or if the calling script does not currently hold the mutex associated with the symbol.
The shm.ttl
configuration, in millisecond, allow you to tune the retention time in memory. Default value is one hour. Tip: you can call SHMLOAD
in a runner with a period shorter than shm.ttl
if you want to keep value in memory indefinitely.
Usage examples are available here on our blog.