.NET SDK - StoreJson and Multiple Buckets
Mon, 12/03/2012 - 13:34
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", "");
Wed, 12/12/2012 - 13:09
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.
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...