Update jsr223.md (#2155)

* Update jsr223.md

Add example of how to implement sharedCache in DSL rules.

Thanks to rlkoshak.

Signed-off-by: Udo Hartmann <udo1toni@users.noreply.github.com>

* Update jsr223.md

removed one empty line

---------

Signed-off-by: Udo Hartmann <udo1toni@users.noreply.github.com>
Co-authored-by: stefan-hoehn <mail@stefanhoehn.com>
pull/2180/head
Udo Hartmann 2023-12-17 10:59:51 +01:00 committed by GitHub
parent 0f2f621f9a
commit 3a49136da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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