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

[Cache] Symfony Serializer implementation for MarshallerInterface #54411

Open
javaDeveloperKid opened this issue Mar 26, 2024 · 2 comments
Open

Comments

@javaDeveloperKid
Copy link
Contributor

Description

I'm surprised there is no built-in integration for Cache Component with Serializer Component as the implementation of MarshallerInterface.

Example

No response

@chalasr
Copy link
Member

chalasr commented Apr 6, 2024

Please give more insights about what a possible implementation would look like and more importantly what benefits it would bring.

@javaDeveloperKid
Copy link
Contributor Author

javaDeveloperKid commented Apr 6, 2024

IIUC Marshaller is just a serializer but another name was chosen not to create second SerializerInterface class in Symfony ecosystem. JSON string is a type of serializer string so one may want to store the cached value as a json (e.g. cache as json and return cached jsonstring directly from API). Integration with Serializer Component would allow that.

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

No branches or pull requests

4 participants