I am trying to use sscan redis for laravel in cloud 9. I have used this function on localhost and try to dd the code , it works perfectly with this one :
dd($this->redis->sscan('events:'.$eid.':tickets' , null , '*:'.$name))
output on postman :
array:4 [
0 => "Ct1yaZ2Q0Z:VIP Ticket"
1 => "5vXsIqYvpF:VIP Ticket"
2 => "jwCEU0lDXX:VIP Ticket"
3 => "1mloEc8bFW:VIP Ticket"
]
However , with the same thing on cloud 9 , no changes and i tried to dd that function , it gives me output like this when there is no data :
array:2 [
0 => "0"
1 => []
]
and error page says ERR syntax error when there is data that match in the sets.
But when there is data in the sets and I add the 'match' keyword on cloud 9 like this :
dd($this->redis->sscan('events:'.$eid.':tickets' , null ,'match','*:'.$name));
it works but the output format is different and become like this :
array:2 [
0 => "0"
1 => array:4 [
0 => "5xI4hCpuSU:VIP Ticket"
1 => "E9ottqlLkk:VIP Ticket"
2 => "VzJB5RfegK:VIP Ticket"
3 => "8TwVvqTmEK:VIP Ticket"
]
]
I wonder why it gives output and error differently on cloud 9 while it works perfectly in localhost, does this mean redis in cloud 9 has different syntax ?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LUiCBs
via IFTTT
Aucun commentaire:
Enregistrer un commentaire