openhab / openhab-js

openHAB JavaScript Library for JavaScript Scripting Automation
https://www.openhab.org/addons/automation/jsscripting/
Eclipse Public License 2.0
38 stars 31 forks source link

[cache] Change implementation to the new access-tracking cache in core #184

Closed florian-h05 closed 1 year ago

florian-h05 commented 1 year ago

With the addition of both a privateCache (per script identifier, useful for sharing timers) and a sharedCache (shared across all scripts from all languages) in https://github.com/openhab/openhab-core/pull/2887, we have to update our implementation of cache.

Backward compatibility must be kept!!

After we have a solution here, we can remove the SharedCache from JS Scripting.

My proposal is:

@rkoshak @digitaldan @jpg0 WDYT?

florian-h05 commented 1 year ago

@wborn FYI: Before removing the SharedCache from the JS Scripting add-on, we/I have to change the implementation of the cache in the helper library.

rkoshak commented 1 year ago

Sounds good to me.