开发者

Simple online key-value storage service [closed]

开发者 https://www.devze.com 2022-12-21 12:47 出处:网络
Closed. This question does开发者_JAVA百科 not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does开发者_JAVA百科 not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

In a number of projects I plan to create (widgets/local client software) I want to store some user preferences etc. I could do this client side, the widgets have this functionality, or I could store it online somewhere, giving the user access to those preferences on any computer, or after a reinstall etc..

The problem is that I don't want to associate those widgets etc with any domain in my possession, or pay the money for another domain and hosting, also implement and maintain the server side code for such a service.

So my question is: Is there any online services that provide storage for simple key-value pairs? Preferably free of course for limited usage. Keep in mind that I want to access it with javascript.


OpenKeyval seems like just what you want.

OpenKeyval is a completely open key-value data store, exposed as a drop-dead simple web service. The goal is to make this a very easy way to persist data in web applications.

You can set and retrieve data using jsonp, so you don't need to worry about cross domain request restrictions. Using it is as simple as:

Storing a value:

$.ajax({
  url: "http://api.openkeyval.org/store/",
  data: "mykey=mydata",
  dataType: "jsonp",
  success: function(data){
    alert("Saved "+data);
  }
});

Retrieving a value:

$.ajax({
  url: "http://api.openkeyval.org/mykey",
  dataType: "jsonp",
  success: function(data){
    alert(data);
  }
});


Yes, you could use Google App Engine, which has a great database system, and store everything in there.

Depending on how big your application is, you will have no storage limit, and it's a service that's always available and 100%* (if your application is not huge and uses loads of bandwidth) free.

You can use Java, Python or Ruby in there. so there's loads of nice options.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号