--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
> Thanks for the answers, i´m using predis, but i don´t use base64
> encode, only save a json string..
Predis doesn't manipulate in any way the string values sent to (or
returned by) Redis. That said, can you please share a stripped-down
snippet of code to be able to reproduce your issue?
Thanks,
Daniele
--
Daniele Alessandri
http://clorophilla.net/
http://twitter.com/JoL1hAHN
Cheers,
Pieter
> print $r->get("UA::".md5($ua));
Why don't you try to decode the JSON string returned of this GET to
see if you correctly get back the properties array? If you get an
invalid format error from the JSON decoder or escaped characters
inside the values (when they are not present in the values of the
original array, that is) than there's indeed something wrong with
Predis, but I'm quite sure this isn't the case:
print_r($cJSON->decode($r->get("UA::".md5($ua))));
PS: I don't know the cJSON library but I'm supposing here it provides
a decode method :-)
> I was thinking that in the previous line was the problem, because when
> i do $r->get the response is correct, but, in redis-cli when i´m doing
> the get call to this element, this info comes escaped too.
See Pieter's reply.