Perspective Cache and Share Question

In the docs, there is a section on caching data client side in Perspective

It mentions that setting -Dperspective.value-cache.max-age to a different value can control how long the session caches things, but it doesnt really defined "things"

It just says:

Certain bindings and queries in Perspective will often pull data to see if any values have changed

Any ideas what those "Certain Bindings and queries" might be?

Currently, the alarm journal and alarm status table's model of alarms,
plus the following binding types if 'cache and share' is enabled in the binding properties.

1 Like

Regarding your comment of “currently”

It would be nice in the future if it was possible to inject custom things into this cache as well.

Thought I would imagine it’s probably technically possibly with hacky Jython referencing whatever Java classes are doing this

Sure... what would that look like to you? I think that's just Phil's xVarMap or private custom properties, right? Though the latter has the unfortunate side effect of collapsing down to JSON-ish types.

Also, to clarify, this data isn't "client side" as in, loaded into the frontend.
It's just held in memory attached to the Perspective session on the backend.

1 Like