2014-04-07 14:36:57 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var imports = require('soop').imports();
|
|
|
|
|
|
|
|
|
|
function Storage() {
|
|
|
|
|
this.data = {};
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-08 00:54:38 -03:00
|
|
|
Storage.prototype.get = function(k) {
|
2014-04-07 14:36:57 -03:00
|
|
|
return this.data[k];
|
|
|
|
|
};
|
|
|
|
|
|
2014-04-08 00:54:38 -03:00
|
|
|
Storage.prototype.set = function(k,v) {
|
2014-04-07 14:36:57 -03:00
|
|
|
this.data[k]=v;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = require('soop')(Storage);
|