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

.NET SDK - StoreJson and Multiple Buckets

2 replies [Last post]
  • Login or register to post comments
Mon, 12/03/2012 - 13:34
ekoostikmartin
Offline
Joined: 11/05/2012
Groups: None

First question - how can we get StoreJson() method to allow to set expiration datetime? There is no overload for this method that I can find.

Second question - whats is the best way to implement the client config when you want to connect to multiple buckets?

If I am using the below in my app.config

<couchbase>
		<servers bucket="firstbucket" bucketPassword="">
			<add uri="http://100.0.0.1/pools"/>
                        <add uri="http://100.0.0.2/pools"/>
		</servers>
</couchbase>

But I want to connect to a different bucket (but same server nodes), can I simply use:

CouchbaseClient client = new CouchbaseClient("otherbucket", "");

Top
  • Login or register to post comments
Wed, 12/12/2012 - 10:46
john
Offline
Joined: 01/05/2012
Groups: None

I will look to get more overloads into the StoreJson extensions. I created a ticket for myself to get those into the next patched release - http://www.couchbase.com/issues/browse/NCBC-179. In the mean time, the extensions class is very simple and wouldn't be hard to modify into your own code.

https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchb...

Top
  • Login or register to post comments
Wed, 12/12/2012 - 13:09
ekoostikmartin
Offline
Joined: 11/05/2012
Groups: None

Thank you for the response. I had got around this by doing the serialization/deserialization myself before calling the base set and get methods.

Didn't realize the full sourcecode was on github, very helpful, will definitely use that until the overloads make it to the release. Thanks again.

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