Skip to content

Commit

Permalink
[playframework#386] Use 0 as default value for Cache.incr and Cache.decr
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebort committed Mar 29, 2011
1 parent 70b04b2 commit adc80b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/play/cache/MemcachedImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ public Map<String, Object> 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) {
Expand Down

0 comments on commit adc80b0

Please sign in to comment.