How to REST API to get/set keys?
Wed, 07/07/2010 - 13:15
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?
> 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)