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
Laravel PHP Redis Connection's hset implementation doesn't properly allow passing multiple fields/values. hmset does allow this, but it is deprecated as of Redis v4. I would expect hset to function properly like hmset.
I did a quick dig and it looks like hset is really using hsetnx behind the scenes which is confusing since the Laravel docs specifically say the facade can call any Redis command.
Description:
Laravel PHP Redis Connection's
hset
implementation doesn't properly allow passing multiple fields/values.hmset
does allow this, but it is deprecated as of Redis v4. I would expecthset
to function properly likehmset
.I did a quick dig and it looks like hset is really using
hsetnx
behind the scenes which is confusing since the Laravel docs specifically say the facade can call any Redis command.Steps To Reproduce:
Easily reproduced in tinker
In the docs and as demonstrated in the redis-cli below,
hset
allows multiple entries:The text was updated successfully, but these errors were encountered: