Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 900 Bytes

faastjs.limits.cache.md

File metadata and controls

18 lines (13 loc) · 900 Bytes
id title hide_title
faastjs.limits.cache
Limits.cache property
true

faastjs > Limits > cache

Limits.cache property

Similar to memoize except the map from function arguments to results is stored in a persistent cache on disk. This is useful to prevent redundant calls to APIs which are expected to return the same results for the same arguments, and which are likely to be called across many faast.js module instantiations. This is used internally by faast.js for caching cloud prices for AWS, and for saving the last garbage collection date for AWS. Persistent cache entries expire after a period of time. See PersistentCache.

Signature:

cache?: PersistentCache;