This commit is contained in:
mhartington
2015-12-04 15:20:02 -05:00
parent 83bf7632f2
commit f1d8d5fc14
5 changed files with 143 additions and 8 deletions

View File

@@ -7,6 +7,9 @@
* for temporary data as it may be "cleaned up" by the operation system
* during low disk space situations.
*/
/**
* @private
*/
export class Storage {
constructor(strategyCls: StorageEngine, options) {
this._strategy = new strategyCls(options);
@@ -33,6 +36,9 @@ export class Storage {
}
}
/**
* @private
*/
export class StorageEngine {
get(key, value) {
throw Error("get() not implemented for this storage engine");