Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MOOOOOSER committed Sep 8, 2023
1 parent dceecd7 commit 0c2610a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/test/kotlin/sirius/kernel/cache/ManagedCacheTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,17 @@ class ManagedCacheTest {

// defines a remover, that allows to define a key value, which should not be removed
cache.addRemover("FILTER")
.filter { selector, entry ->
(entry.getKey() != selector)
}
// get value of managed cache
.map { entry ->
entry.getValue()
}
.filter(
{ selector, entry ->
entry.getKey() != selector
}
)
.map(
// get value of managed cache
{ entry ->
entry.getValue()
}
)
.map(
// add key + value of the cache Entry, for example: "E" + 12345
{ selector, value ->
Expand Down

0 comments on commit 0c2610a

Please sign in to comment.