/* val == '100' */
Keys and values are limited to 250 ASCII characters,
excluding space, newline, ? and /
JSON-P is used for cross-domain communication
Optional second callback will be called on error
/* use val */
/* error occured */
Data store for static websites
Communication between front-ends
A building block
A simple, easy to implement API (just 2 endpoints):
By default, my server (well, heroku at the moment). If you want to host your own, just change Rasta.url.
Unspecified by design. Let's say 5 MB. Old keys are invalidated. Strategy unspecified, could be LRU, LFU, etc.
Because JSON-P doesn't support POST.
This is a key-value date store (something like Memcache or Redis)
that you can access from browser's front-end (like HTML5
localStorage), except you do not host it yourself.
By simply including provided script tag, you get a tiny library that
communicates with the data store. You get
Rasta.get(key, cb(), err())
Rasta.set(key, val, cb(), err())