You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Illuminate/Cache/RedisStore use serialize when SERIALIZER_IGBINARY is enable.
This will result in two serializations, and it's unnecessary.
Worse still, we can’t benefit from igbinary, the data size is still the same as php serialize.
Why not just let PhpRedis do the serialize?
This discussion was converted from issue #54064 on January 06, 2025 02:33.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Laravel Version
11.x
PHP Version
8.1.3
Database Driver & Version
No response
Description
Illuminate/Cache/RedisStore use serialize when SERIALIZER_IGBINARY is enable.
This will result in two serializations, and it's unnecessary.
Worse still, we can’t benefit from igbinary, the data size is still the same as php serialize.
Why not just let PhpRedis do the serialize?
https://github.com/laravel/framework/blob/11.x/src/Illuminate/Cache/RedisStore.php#L423
There is two way to fix this problem
Steps To Reproduce
Beta Was this translation helpful? Give feedback.
All reactions