architecture refactor
This commit is contained in:
parent
6d90020205
commit
59c00da592
17 changed files with 151 additions and 47 deletions
24
js/models/storage/Base.js
Normal file
24
js/models/storage/Base.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
'use strict';
|
||||
|
||||
var imports = require('soop').imports();
|
||||
|
||||
function Storage() {
|
||||
}
|
||||
|
||||
// get value by key
|
||||
Storage.prototype.get = function(k) {
|
||||
};
|
||||
|
||||
// set value for key
|
||||
Storage.prototype.set = function(k,v) {
|
||||
};
|
||||
|
||||
// remove value for key
|
||||
Storage.prototype.remove = function(k) {
|
||||
};
|
||||
|
||||
// remove all values
|
||||
Storage.prototype.clearAll = function() {
|
||||
};
|
||||
|
||||
module.exports = require('soop')(Storage);
|
||||
Loading…
Add table
Add a link
Reference in a new issue