## AIO lib state - expiry

ursboller

MVP

Total Posts

1.0K

Likes

503

254

ursboller

MVP

Total Posts

1.0K

Likes

503

254
ursboller
MVP

27-08-2020

Hi all. have a question regarding aio-lib-state: https://github.com/adobe/aio-lib-state

what is the expiry of a key I set in an action? is the state cleared after an action or persits for a given time?

example: action1 sets a key to the state, can a action2 get the value when running later (and independend).

#### Accepted Solutions (1)

Mihai_Corlan

Employee

Total Posts

29

Likes

6

4

Mihai_Corlan

Employee

Total Posts

29

Likes

6

4
Mihai_Corlan
Employee

28-08-2020

Hi Urs,

The value doesn't expire, so yes, your flow would work - writing values from one action and retrieving them later from another action or the same one.

Cheers,

Mihai

Hi @Mihai_Corlan thanks a lot for the fast reply and confirmation! will give it a try. on the other hand, that means we need to be careful using this feature and create a proper documentation