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

Get bucket item count in Couchbase .NET client

3 replies [Last post]
  • Login or register to post comments
Tue, 07/24/2012 - 10:52
mpalmerlee
Offline
Joined: 07/24/2012
Groups: None

I'm just getting started experimenting with Couchbase (v1.8) using the .NET client. I can't figure out how to get a basic count of items I've stored in the default bucket. My storage code is pretty simple:

var client = new CouchbaseClient();
var session = new Session { SessionId = "session_1234" };
client.Store(StoreMode.Add, sessionId, session);

But now I just want to get a count of all the sessions I've stored in my couchbase bucket. I've looked at the .NET API docs and can't seem to find a way to do this.

Top
  • Login or register to post comments
Tue, 07/24/2012 - 12:07
mpalmerlee
Offline
Joined: 07/24/2012
Groups: None

Looks like I got an answer over at stack overflow:
http://stackoverflow.com/questions/11621646/get-bucket-item-count-in-cou...

Top
  • Login or register to post comments
Mon, 08/06/2012 - 07:18
john
Offline
Joined: 01/05/2012
Groups: None

Apologies for missing you on the forums here, but glad I caught you on StackOverflow...

Top
  • Login or register to post comments
Mon, 08/06/2012 - 07:19
john
Offline
Joined: 01/05/2012
Groups: None

Apologies for missing you on the forums here, but glad I caught you on StackOverflow...

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