MCPcopy Index your code
hub / github.com/ebean-orm/ebean / putAll

Method putAll

ebean-redis/src/main/java/io/ebean/redis/RedisCache.java:189–207  ·  view source on GitHub ↗
(Map<Object, Object> keyValues)

Source from the content-addressed store, hash-verified

187 }
188
189 @Override
190 public void putAll(Map<Object, Object> keyValues) {
191 long start = System.nanoTime();
192 try (Jedis resource = jedisPool.getResource()) {
193 try (final Transaction multi = resource.multi()) {
194 for (Map.Entry<Object, Object> entry : keyValues.entrySet()) {
195 if (expiration == null) {
196 multi.set(key(entry.getKey()), value(entry.getValue()));
197 } else {
198 multi.set(key(entry.getKey()), value(entry.getValue()), expiration);
199 }
200 }
201 multi.exec();
202 }
203 metricPutAll.addSinceNanos(start);
204 } catch (Exception e) {
205 errorOnWrite(e);
206 }
207 }
208
209 @Override
210 public void remove(Object id) {

Callers

nothing calls this directly

Calls 9

keyMethod · 0.95
valueMethod · 0.95
errorOnWriteMethod · 0.95
multiMethod · 0.80
entrySetMethod · 0.65
setMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65
addSinceNanosMethod · 0.65

Tested by

no test coverage detected