Skip to content

Commit

Permalink
add ruby
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <github@klug.nrw>
  • Loading branch information
J-N-K committed Dec 3, 2022
1 parent 99ec46e commit a304004
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configuration/jsr223.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,17 @@ scriptExtension.importPreset("cache")

:::

::: tab JRuby

```ruby
# the preset is imported automatically by the helper library.
value_x = shared_cache[:x]
shared_cache.delete(:x)
shared_cache[:x] = "y"
```

:::

::::

It provides two different caches:
Expand Down

0 comments on commit a304004

Please sign in to comment.