# State-Register

- The state-register refers to a function that defines states that are intended to be maintained over a certain period.
- Each state can be identified by a unique name.
- Each state can maintain values in any form, such as strings, numbers, or objects.
- Each state's validity of the last set value can be determined by TTL (Time To Live). (It is considered set if TTL is greater than 0)
  - If the state value was set at a time earlier than the current time compared to TTL (seconds), then that value becomes invalid.
  - State values past their TTL are queried as null.
