Skip to content

Scenario operations reference

Aurelien edited this page Feb 6, 2018 · 2 revisions

Ehcache 3

Operations

operations are part of a Scenario, e.g.

scenario("Test phase")
              .exec(
                  weighted(0.90, Ehcache3Operations.get(keyGenerator, valueGenerator, atRandom(GAUSSIAN, 0, 10000, 1000), singletonList(cache("one", one)),
                  weighted(0.10, Ehcache3Operations.put(keyGenerator, valueGenerator, atRandom(GAUSSIAN, 0, 10000, 1000), singletonList(cache("one", one))))
              ))

Here is the list of operations:

put() : Ehcache.put(key , value)
get()
remove()
putAll()
getAll()
removeAll()
putIfAbsent()
replace()
replaceForKeyAndValue()
removeForKeyAndValue()
Clone this wiki locally