Skip to content

Commit

Permalink
Update jsr223.md (openhab#2155)
Browse files Browse the repository at this point in the history
* Update jsr223.md

Add example of how to implement sharedCache in DSL rules.

Thanks to rlkoshak.

Signed-off-by: Udo Hartmann <[email protected]>

* Update jsr223.md

removed one empty line

---------

Signed-off-by: Udo Hartmann <[email protected]>
Co-authored-by: stefan-hoehn <[email protected]>
  • Loading branch information
udo1toni and stefan-hoehn authored Dec 17, 2023
1 parent 0f2f621 commit 3a49136
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configuration/jsr223.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,16 @@ sharedCache.remove("x")

:::

::: tab DSL

```java
sharedCache.put('foo', 'bar')
sharedCache.get('foo') // returns null if doesn't exist
shareCache.put('foo', null) // deletes the entry
```

:::

::: tab Jython

```python
Expand Down

0 comments on commit 3a49136

Please sign in to comment.