Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle storing local data in the in-memory state #151

Open
shazron opened this issue Sep 30, 2024 · 0 comments
Open

handle storing local data in the in-memory state #151

shazron opened this issue Sep 30, 2024 · 0 comments

Comments

@shazron
Copy link
Member

shazron commented Sep 30, 2024

          keeping `local=false` in this PR works as it aligns with the current behavior. see [here](https://github.com/adobe/aio-lib-ims/blob/master/src/ctx/Context.js#L87-L89) and [here](https://github.com/adobe/aio-lib-ims/blob/master/README.md?plain=1#L114)

note
In the future or as an extra effort, we may store the local information when setting the token in-memory to return it here. e.g. by storing it in smthg like this.isLocal[this.keyNames.CONTEXTS][key]. This will provide an option to just cache in-memory (not using State lib), in the context of I/O Runtime actions.

Originally posted by @moritzraho in #150 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant