Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cachable - unref check interval to allow node exit (#919)
When a check interval is passed to the cache, cachable starts an interval that prevents node from exiting unless it gets cleared. There is a public method to stop the interval, but it's flagged as internal use only. Given this, I've opted to unref the interval to allow the node process to exit cleanly. The other alternative would be to add a public close/disconnect API method -- the Keyv interface seems to account for this case -- however, it does make the API more cumbersome for the end-user. Co-authored-by: Jared Wray <[email protected]>
- Loading branch information