Skip to content

Instantly share code, notes, and snippets.

@PavlikPolivka
Created December 1, 2021 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PavlikPolivka/abfa195767db1e37a93070095cdac02d to your computer and use it in GitHub Desktop.
Save PavlikPolivka/abfa195767db1e37a93070095cdac02d to your computer and use it in GitHub Desktop.
const now = new Date().getTime();
if (_cacheResolvedTime.has(key)) {
if ((now - _cacheResolvedTime.get(key)) > 60000) {
_cacheResolvedTime.delete(param);
_cacheValues.delete(key);
_cachePromises.delete(key);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment