spec-json-schemas icon indicating copy to clipboard operation
spec-json-schemas copied to clipboard

refactor: included caching in add-new-version.js.

Open Manush-2005 opened this issue 8 months ago • 2 comments

Description

  • This file had too many fs read and write operations.
  • Included cache which reads data from all files and returns the writes final cache at the end of execution( addNewVersion function).
  • ReadJsonFile - Reads File and puts it in cache.
  • WriteJsonFile - Required cache file is written back.

Manush-2005 avatar Jun 15 '24 12:06 Manush-2005