DataCache - Simple storage wrapper

Allows JSON data to be persisted easily by user scripts

Verzia zo dňa 15.06.2015. Pozri najnovšiu verziu.

Tento skript by nemal byť nainštalovaný priamo. Je to knižnica pre ďalšie skripty, ktorú by mali používať cez meta príkaz // @require https://update.greatest.deepsurf.us/scripts/10443/56961/DataCache%20-%20Simple%20storage%20wrapper.js

Autor
spiralx
Verzia
0.0.1.20150615033807
Vytvorené
15.06.2015
Aktualizované
15.06.2015
Veľkosť
1,4 KB
Licencia
neuvedené

Automates storing data as a JSON object. Example:

var cache = new DataCache('linked-urls');

cache.setValue('moo', 'http://google.com');

var moo = cache.getValue('moo', 'DEFAULT');

// --------------------------------------------------------------------------

GM_registerMenuCommand('Edit cache', function() {
  cache.edit();
}, 'p');