Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Get and set in multithreading environment

1 reply [Last post]
  • Login or register to post comments
Thu, 12/06/2012 - 07:18
pankaj.ambere
Offline
Joined: 11/30/2012
Groups: None

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?

Top
  • Login or register to post comments
Mon, 12/10/2012 - 23:50
mikew
Offline
Joined: 03/14/2011
Groups:

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.

https://groups.google.com/forum/?fromgroups=#!topic/memcached/uY_HDd6zllA

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker