Use the RequestStorageInterface to handle the state required during the request #551
Closed
klsoft-web
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For web servers such as FrankenPHP, Rapira, RoadRunner and Swoole, where the container is not recreated with every request, state management is critical.
Using the
RequestStorageInterfacefor this purpose can help to resolve a number of issues.The benefits provided by the
RequestStorageInterfaceare listed below:resetdefinitions during configuration.resetdefinition is not specified.resetdefinition.This is how it is supposed to work.
The
RequestStorageInterfaceis responsible for storing data, and theCurrentRequestStorageInterfaceis responsible for storing and deleting the current request storage.Example of using the
RequestStorageInterface:After emitting, delete the current request storage:
All reactions