Static
connectConnects and links a worker function to the mesh
Static
cronSchedules a cron job to run at a specified interval
with optional args. Provided arguments are passed to the
callback function each time the cron job runs. The id
option is used to uniquely identify the cron job, allowing
it to be interrupted at any time.
Static
execCalls a function and returns the response.
Static
flushClears a cached function response.
Static
interruptInterrupts a running cron job. Returns true
if the job
was successfully interrupted, or false
if the job was not
found.
Static
shutdown
MeshCall connects your functions to the Redis-backed mesh, exposing them as idempotent endpoints. Call functions from anywhere on the network with a connection to Redis. Function responses are cacheable and functions can even run as idempotent cron jobs (this one runs once a day).
Example