MaxAgeCache

new MaxAgeCache(maxAgeMs: number): MaxAgeCache
Parameters
maxAgeMs (number) The number of milliseconds that is the maximum age of entries.
Returns
MaxAgeCache: A new MaxAgeCache instance.
Instance Members
maxAge(ms)
set(key, value)
get(key, resetAge)
has(key)
del(key)
keys(key)
values(key)
entries(key)
toObject(key)

isUndefined

Returns true if value 'v' is undefined.

isUndefined(value: any): boolean
Parameters
value (any) The value to evaluate
Returns
boolean: boolean

oSetNonEnum

Adds a non-enumerable property on object, 'o'

oSetNonEnum(o: object, key: string, value: string): void
Parameters
o (object) The object on which to set a property value
key (string) The property key name
value (string) The property value
Returns
void:

repeatEvery

Continuously calls the callback function with a millisecond-specified delay, 'ms'

repeatEvery(ms: number, callback: function): function
Parameters
ms (number) The millisecond delay
callback (function) The callback function that will be called every 'ms' milliseconds.
Returns
function: a cancellation function