Cache API Calls in JavaScript by Memoizing Promisesby@aldrinvincent
8,741 reads

Cache API Calls in JavaScript by Memoizing Promises

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Cache API Calls in JavaScript by Memoizing Promises. A higher-order function that stores promises in a map with key as parameters of the function that make API call and if the same API is called with the same params, the result will be served from cache.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Cache API Calls in JavaScript by Memoizing Promises
Aldrin HackerNoon profile picture

@aldrinvincent

Aldrin


Receive Stories from @aldrinvincent

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!