@edjopato/datastore
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -12,3 +12,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -15,0 +15,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
import { ExtendedStore } from './type'; | ||
export declare class TtlKeyValueInMemoryFile<T> implements ExtendedStore<T> { | ||
private readonly _filepath; | ||
readonly ttlSupport = false; | ||
readonly ttlSupport = true; | ||
private readonly _inMemoryStorage; | ||
@@ -6,0 +6,0 @@ constructor(_filepath: string, cleanupIntervalMilliseconds?: number); |
@@ -10,3 +10,3 @@ "use strict"; | ||
this._filepath = _filepath; | ||
this.ttlSupport = false; | ||
this.ttlSupport = true; | ||
this._inMemoryStorage = new Map(); | ||
@@ -13,0 +13,0 @@ if (fs_1.existsSync(this._filepath)) { |
import { ExtendedStore } from './type'; | ||
export declare class TtlKeyValueInMemoryFiles<T> implements ExtendedStore<T> { | ||
private readonly _directory; | ||
readonly ttlSupport = false; | ||
readonly ttlSupport = true; | ||
private readonly _inMemoryStorage; | ||
@@ -6,0 +6,0 @@ constructor(_directory: string, cleanupIntervalMilliseconds?: number); |
@@ -10,3 +10,3 @@ "use strict"; | ||
this._directory = _directory; | ||
this.ttlSupport = false; | ||
this.ttlSupport = true; | ||
this._inMemoryStorage = new Map(); | ||
@@ -13,0 +13,0 @@ fs_1.mkdirSync(_directory, { recursive: true }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "@edjopato/datastore", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Handles different ways to store data within NodeJS", | ||
@@ -39,4 +39,4 @@ "license": "MIT", | ||
"del-cli": "^3.0.0", | ||
"typescript": "^3.7.4", | ||
"xo": "^0.32.0" | ||
"typescript": "^4.0.2", | ||
"xo": "^0.33.1" | ||
}, | ||
@@ -43,0 +43,0 @@ "xo": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43993