Skip to content

Commit

Permalink
Fixed error whilst merging, accidentally removed cache delete function
Browse files Browse the repository at this point in the history
Merge branch 'main' into coalesce-reset-options

* main:
  chore(main): release 8.3.1 (nodeshift#907)
  fix: Incorrect default value of maxEntries for MemoryCache nodeshift#904 (nodeshift#906)

# Conflicts:
#	lib/cache.js
  • Loading branch information
Daan committed Nov 20, 2024
1 parent e2018c2 commit 15cd89e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ class MemoryCache {
});
}

/**
* Delete cache key
* @param {string} key Cache key
* @return {void}
*/
delete (key) {
this.cache.delete(key);
}

/**
* Clear cache
* @returns {void}
Expand Down

0 comments on commit 15cd89e

Please sign in to comment.