Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(config.ts): add caching mechanism to reduce file I/O operations
A caching mechanism has been added to the getConfig function to improve performance by reducing the number of file I/O operations. The function now checks if the configCache variable is enabled and returns the cached value if it is. If the cache is not enabled, the function reads the configuration file and returns the value. After reading the configuration file, the function stores the value in the cache for future use.
- Loading branch information