OptionaltimeoutThe duration (in milliseconds) after which the cache should expire.
OptionalonA string of one or more space-separated event names or an array of event names. The cache will be cleared when one of these events occur on the instance.
OptionalonA callback function that returns a boolean or a promise resolving to a boolean. The cache will be cleared if the function returns true.
OptionalonThe frequency (in milliseconds) at which the onCallback function is called.
OptionalonThe field or function names to watch for changes. The cache will be cleared when any of these change. Multiple field names can be provided in the same.
OptionalclearIf set to true, the cache will be cleared on the next animation frame.
Description
Options for configuring the
@cachedecorator.