MemoizeOptions <T>
Index
Properties
optionalcache
optionalexpires
Time in milliseconds in which to keep the cache alive (TTL).
Pass 0
to cache indefinitely. Defaults to 0
.
optionalhasher
A hashing function to determine the cache key. Is passed the method's arguments
and must return a string. If not provided, arguments are hashed using JSON.stringify()
.
A custom
Map
instance to store cached values. Can also be used to pre-cache expected values.