I want to use couchbase in a java multithreaded environment. I want to service multiple set and get requests concurrently.How can I implement such a program?
Couchbase uses the concept of a cas value in order to deal with this issue. Every time an item is updated the cas value is incremented. If you set a key and provide a cas number that is incorrect the set will not take place and the client will receive an error. Here is a short forum post that I think will help explain the issue. If you have any other questions let me know.
© 2013 COUCHBASE All rights reserved.