From adc80b01fa55fcbf9b282c86441d889ae82d93c8 Mon Sep 17 00:00:00 2001 From: Guillaume Bort Date: Tue, 29 Mar 2011 14:27:58 +0200 Subject: [PATCH] [#386] Use 0 as default value for Cache.incr and Cache.decr --- framework/src/play/cache/MemcachedImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/play/cache/MemcachedImpl.java b/framework/src/play/cache/MemcachedImpl.java index 593e49d9f5..514e38279c 100644 --- a/framework/src/play/cache/MemcachedImpl.java +++ b/framework/src/play/cache/MemcachedImpl.java @@ -130,11 +130,11 @@ public Map get(String[] keys) { } public long incr(String key, int by) { - return client.incr(key, by); + return client.incr(key, by, 0); } public long decr(String key, int by) { - return client.decr(key, by); + return client.decr(key, by, 0); } public void replace(String key, Object value, int expiration) {