Optional
ttl?: numberIf present and non-zero - a TTL timeout in milliseconds for stored streams.
Get a cache key from a given Context. Useful when context object is rich
and not unique, but a sub-property of it (e.g. context.path
) uniquely
represents the cached value.
Typically a file path, but could be an arbitrary object.
An arbitrary string or object to be used as a key for an Map
Maximum number of stored streams. When this number is reached - the oldest stream from the oldest accessed
Context
gets removed.