[RCBC-114] Code sample of Get and Lock in Ruby Created: 28/Jan/13 Updated: 06/May/13
|Project:||Couchbase Ruby client library|
|Reporter:||Karen Zeller||Assignee:||Sergey Avseyev|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
One of our users asked for a code example demonstrating Get and Lock in Ruby for the Developer Guide.
|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 ]|
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.