Thank u David.. It works

On Wed, Oct 7, 2015 at 7:16 PM, David Sheldon <[email protected]>
wrote:

> On Wed, Oct 07, 2015 at 03:57:50AM -0700, [email protected] wrote:
> > I am using memcached node js client. I am not getting the JSON output
> when
> > performing the get operation on it. Here is my code
> >
> > memcached.get(id, function( err, result ){
> >   if( err ) console.error( err );
> >   console.log( result );
> > });
> > and the output is
> >
> >
> a:2:{s:7:"passkey";s:40:"8c779538d8c4ed54cf8a89d1e59518557febf0ac";s:7:"userkey";s:7:"5b9ce84";}
> > How to get the userkey from this output or how to get the output as json?
>
>
> Looks like your problem is that you haven't put JSON into memcached.
> That looks a bit like PHP serialisation format. Maybe call json_encode
> in your PHP. If you can't do that, it looks like people have created
> some nasty node.js php unserializers. Like
> https://github.com/naholyr/js-php-unserialize
>
> David
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "memcached" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/memcached/zD0KEYI38NA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to