Skip to main content

Lifetime

Forces new and hydrated instances to be temporary.

TypeSinceScoped
Declaration0.0.3No

Constructor

[Lifetime] = number

Usage

Usage is simple; when using New(), set an index to [Lifetime], with a value equal to the lifetime in seconds.

New(MyObject, {
[Lifetime] = 5 -- Delete after 5 seconds
})