cacheable-lookup
cacheable-lookup copied to clipboard
fix: allow destroying a cache instance
Currently the cache instance creates an interval under the hood and there's no way to clear this interval. This effectively results in memory leaks when e.g. running a jest test suite where each suite creates a cache instance.