// page 1
$foo = 'bar';
$data = array('foo'=>$foo);
$baz = json_encode($data);
$mc = new Memcache;
$mc->connect('127.0.0.1','11211');
$mc->set('key', $baz);

// page 2
$mc = new Memcache;
$mc->connect('127.0.0.1','11211');
$data = json_decode( $mc->get('key') );
var_dump($data);
{'foo':'bar'}




On Fri, Oct 18, 2013 at 1:47 AM, beeshma r <[email protected]> wrote:

> Hi group,
>
> I am new to PHP. I am very curious about memcache .
> Any one please suggest best step by step tutorials in memcache.
>
> Thanks and Regards
> Beeshma Ramakrishnan.
>
>
> --
>
> ---
> 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/groups/opt_out.
>

-- 

--- 
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/groups/opt_out.

Reply via email to