-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Cache] Adding about marshallers #15054
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
Conversation
How to use them? |
I think it depends on your data. Some types of data might be better with Igbinary. I have not tested any of them so I cannot really tell.
I'll add a code example. |
use Symfony\Component\Cache\DeflateMarshaller; | ||
|
||
$marshaller = new DeflateMarshaller(new DefaultMarshaller()); | ||
$cache = new RedisAdapter(new \Redis(), 'namespace', 0, $marshaller); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add the way to do it framework side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in this docs. This is for the component only.
6abd0f7
to
126cf24
Compare
Tobias, thanks a lot for contributing this. All this "marshallers thing" was confusing to me, so this was lacking in the docs. While merging I did some changes to add an introductory note explaining, very briefly, the differences between serializing and marshalling. Cheers! |
This is related to #15050
It will add information about serialisation, encryption and compression.