2020-02-02 20:07:11 +05:00
|
|
|
export default class Storage {
|
|
|
|
|
constructor(context) {
|
|
|
|
|
this.storage = context;
|
|
|
|
|
}
|
2020-03-09 00:12:40 +05:00
|
|
|
write(key, data) {
|
|
|
|
|
return this.storage.write(key, data);
|
2020-02-02 20:07:11 +05:00
|
|
|
}
|
2020-03-09 00:12:40 +05:00
|
|
|
readMulti(keys) {
|
|
|
|
|
return this.storage.readMulti(keys);
|
2020-02-02 20:07:11 +05:00
|
|
|
}
|
2020-03-09 00:12:40 +05:00
|
|
|
read(key) {
|
|
|
|
|
return this.storage.read(key);
|
2020-02-02 20:07:11 +05:00
|
|
|
}
|
2020-03-09 00:12:40 +05:00
|
|
|
clear() {
|
|
|
|
|
return this.storage.clear();
|
|
|
|
|
}
|
|
|
|
|
remove(key) {
|
|
|
|
|
return this.storage.remove(key);
|
2020-02-02 20:07:11 +05:00
|
|
|
}
|
|
|
|
|
encrypt(password, data) {
|
|
|
|
|
return this.storage.encrypt(password, data);
|
|
|
|
|
}
|
|
|
|
|
decrypt(password, cipher) {
|
|
|
|
|
return this.storage.decrypt(password, cipher);
|
|
|
|
|
}
|
|
|
|
|
}
|