[RCBC-114] Code sample of Get and Lock in Ruby Created: 28/Jan/13 Updated: 06/May/13 |
|
| Status: | Open |
| Project: | Couchbase Ruby client library |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Security Level: | Public |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Karen Zeller | Assignee: | Sergey Avseyev |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
One of our users asked for a code example demonstrating Get and Lock in Ruby for the Developer Guide.
|
| Comments |
| Comment by Sergey Avseyev [ 06/May/13 ] |
|
There are examples of get with lock usage in our test suite: https://github.com/couchbase/couchbase-ruby-client/blob/master/test/test_get.rb#L349-L397 Generally it is pretty straightforward, just pass ':lock => true' or with number like ':lock => 14' to the Couchbase::Bucket#get method, and expect that key will be locked on default interval (set by the server) or user defined (14 in this case) |
| Comment by Karen Zeller [ 06/May/13 ] |
|
Hi,
We will get the same feedback if we use this as an example as we tried with PHP. PHP also only had assertions from TDD, Unit-testing and we were told customers need an actually application-level usage (how to use within a sample application, not a test suite for the SDK). You should hold this ticket until someone in the team is able to demonstrate GETL in Ruby within a sample application or a code snippet within an application. Regards, Karen |