Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Developer Kit

How to REST API to get/set keys?

2 replies [Last post]
  • Login or register to post comments
Wed, 07/07/2010 - 13:15
ken256
Offline
Joined: 07/07/2010
Groups: None

I installed memcached today. I'm interested in the REST API because I'll be calling the server from different technologies, although primarily JRUBY on Windows using the rest-client gem.

I was able to quickly write an app to add a bucket and retrieve a bucket:

[CODE]RestClient.post('http://localhost:8080/pools/default/buckets', {:name => params[:name], :cacheSize => 10})
[/CODE]

I see nothing in the documentation for the REST API about how to set / get keys within a bucket?

Top
Wed, 07/07/2010 - 13:36
cgoldberg
Offline
Joined: 06/14/2010
Groups: None

> I see nothing in the documentation for the REST API
> about how to set / get keys within a bucket?

from the "Developer Guide" ( [url]http://www.northscale.com/support/documentation.html[/url] )

"The NorthScale Management REST API is used to manage clusters, server nodes, and buckets, and to
retrieve run-time statistics, in your NorthScale Memcached Server deployment. [B]It is not used to directly
manage data in your cache - the cache data management operations (sets, gets, increments, decrements,
etc.)*are handled instead by other components of the NorthScale Memcached Server.[/B]"

so.. the REST API is for managing/monitoring, not for working with your data (get/set/etc)

Top
Wed, 07/07/2010 - 13:52
ken256
Offline
Joined: 07/07/2010
Groups: None

I was afraid that was the case. So then it appears in my case the best solution will be the java client API called from within jruby.

Top
  • 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