[RCBC-39] Increment Decrement Delta not working Created: 14/Jun/12 Updated: 20/May/13 Resolved: 20/May/13 |
|
| Status: | Closed |
| Project: | Couchbase Ruby client library |
| Component/s: | None |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | None |
| Security Level: | Public |
| Type: | Bug | Priority: | Major |
| Reporter: | Karen Zeller | Assignee: | Wayne Siu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Using the 1.1.2 gem, specifying a :delta => 10 does not increment or decrement the value by any given delta.
|
| Comments |
| Comment by Sergey Avseyev [ 14/Jun/12 ] |
| There is only one mention about :delta option: in README, and currenly I don't have code which does it, but it will be easy to implement |
| Comment by karenzeller [ 14/Jun/12 ] |
| So right now in Ruby, the increment and decrement only increment/decrement by 1? |
| Comment by karenzeller [ 14/Jun/12 ] |
| If you do implement :delta for incr() and decr(), it would make the SDK more consistent with all the other SDKs.... |
| Comment by Sergey Avseyev [ 15/Jun/12 ] |
|
Currently you can specify delta using second argument:
conn.incr("foo", 100) conn.decr("foo", 50) |
| Comment by Sergey Avseyev [ 22/Jun/12 ] |
| Uploaded fix http://review.couchbase.org/17554 |
| Comment by karenzeller [ 22/Jun/12 ] |
| Great. Will update doc. |
| Comment by Wayne Siu [ 20/May/13 ] |
| Reopening the ticket for administrative reason. |