Skip to content
\n

\"Redis\" is not mentioned.

\n

Why i ask this? It broke my prod, because sMembers returned \"Redis\" instead of an array, now i want to fix the code but i have no idea how to go about it. The thing is, the redis connection works (it is a long-running 7 months cli php script that uses this single connection), everything works (get/set) - its just the sMembers function that started returning \"Redis\" after these 7 months.

\n

So, how should i interpret when functions return \"Redis\" instead of actual data, do i interpret it like a connection gone bad (even though the connection actually works fine..)?

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

PhpRedis returns Redis object when it is in multi/pipeline mode. Here is an example how to use it
\nhttps://github.com/phpredis/phpredis?tab=readme-ov-file#example-115

","upvoteCount":2,"url":"https://github.com/phpredis/phpredis/discussions/2447#discussioncomment-8506605"}}}
Discussion options

You must be logged in to vote

PhpRedis returns Redis object when it is in multi/pipeline mode. Here is an example how to use it
https://github.com/phpredis/phpredis?tab=readme-ov-file#example-115

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tomislavcivcija
Comment options

Answer selected by tomislavcivcija
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants