Piper Push Cache Documentation Download Samples Contact  

Cache Actor

The cache actor sets a JSON record in the Piper cache. The record is indexed by the record identfier. Setting the record in the cache causes the record to be pushed to web pages using WebSockets or SSE.

The cache task is a synchronous task. The caching of a record is fast, taking only nanoseconds so it is done with what ever thread was used for the previous task or with the thread that initiated the flow if the cache task is the entry point in the flow.

There are no additional parameters to the cache task actor. The task follows the first or only link to the next task. No link label is needed.

The JSON used to designate a cache task in a flow description is:

    "task-x": {
        "actor": "cache",
         "trace": false,
         "links": {
            "": "task-y"