Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
} from '../../utils';
export class JsonFileStorage extends Storage {
- private static readonly performanceRecords: Map<string, Statistics> = new Map<
- string,
- Statistics
- >();
+ private static performanceRecords: Map<string, Statistics>;
private fd?: number;
}
public open(): void {
+ JsonFileStorage.performanceRecords = new Map<string, Statistics>();
try {
if (isNullOrUndefined(this?.fd)) {
if (!existsSync(dirname(this.dbName))) {
}
public close(): void {
+ JsonFileStorage.performanceRecords.clear();
try {
if (this?.fd) {
closeSync(this.fd);