Who kown this memcache_get_stats function ?

Who kown this memcache_get_stats function ?

am 05.09.2009 10:43:33 von hack988 hack988

I found memcache_get_stats for memcached in some php code.
I'm search it at php.net's function list,but it no matched result :(.
I had found explain for Memcache::getStats() at this link
http://www.php.net/manual/en/function.memcache-getstats.php
In this link,tell me that
==========================================
Also you can use memcache_get_stats() function.
==========================================
But I can't find memcache_get_stats function's explain in online manual.
Anybody can help me for using this function?Or give an more detail
link for this function?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Who kown this memcache_get_stats function ?

am 06.09.2009 06:16:51 von hack988 hack988

Nobody Kown this?This is my second question in this mail-list :(.I
don't kown why it's no reply by anybody.

2009/9/5 hack988 hack988 :
> I found memcache_get_stats for memcached in some php code.
> I'm search it at php.net's function list,but it no matched result :(.
> I had found explain for Memcache::getStats() =A0at this link
> http://www.php.net/manual/en/function.memcache-getstats.php
> In this link,tell me that
> ==================== =====
==================
> Also you can use memcache_get_stats() function.
> ==================== =====
==================
> But I can't find memcache_get_stats function's explain in online manual.
> Anybody can help me for using this function?Or give an more detail
> link for this function?
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Who kown this memcache_get_stats function ?

am 06.09.2009 06:30:39 von Eddie Drapkin

On Sun, Sep 6, 2009 at 12:16 AM, hack988 hack988 wro=
te:
> Nobody Kown this?This is my second question in this mail-list :(.I
> don't kown why it's no reply by anybody.
>
> 2009/9/5 hack988 hack988 :
>> I found memcache_get_stats for memcached in some php code.
>> I'm search it at php.net's function list,but it no matched result :(.
>> I had found explain for Memcache::getStats()  at this link
>> http://www.php.net/manual/en/function.memcache-getstats.php
>> In this link,tell me that
>> ==================== =====
==================
>> Also you can use memcache_get_stats() function.
>> ==================== =====
==================
>> But I can't find memcache_get_stats function's explain in online manual.
>> Anybody can help me for using this function?Or give an more detail
>> link for this function?
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Having taken a quick gander at the manual, specifically
memcache_connect(), it appears that the memcache extension has a
procedural style API similar to the procedural style MySQLi API.

$db =3D mysqli_connect() and mysqli_query($db, ...) vs. $db =3D new
mysqli() and $db->query(), so $memc =3D memcache_connect() and
memcache_get_stats($memc) vs. $memc =3D new memcache and
$memc->get_stats();

Now, on another note, the Memcache extension is pretty old and crusty
and doesn't support a lot of the awesome functionality that's been
built into Memcached as of late. Specifically, setting/getting a key
based on a specific server, CAS (which can be used to prevent race
conditions), and a whole bunch of other nice options (like a JSON
based serializer for cross-platform compatibility between Memcached
servers). Instead, I would suggest you use the newer, shinier, more
featureful memcached extension ( http://php.net/memcached
http://pecl.php.net/package/memcached ). Despite being so similarly
named, the Memcached extension is much better (and I believe faster).
The only disadvantage is that it has to be built with libmemcached (so
you have to have that installed, which could be a problem) and that it
only offers an object oriented API, but neither of those should be an
issue.

Have a look at PECL/Memcached and I wish you the best of luck in your
memcached deployment, It's difficult, but it's a hell of a lot of fun
and a completely different way of viewing data in PHP.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Who kown this memcache_get_stats function ?

am 06.09.2009 06:30:52 von Jonathan Tapicer

I think that the documentation for memcache_get_stats should be
exactly the same as the one given for the method Memcache::getStats
except that memcache_get_stats should receive as the first parameter a
reference to the Memcache connection.

Hope that helps.

Jonathan


On Sun, Sep 6, 2009 at 1:16 AM, hack988 hack988 wrot=
e:
> Nobody Kown this?This is my second question in this mail-list :(.I
> don't kown why it's no reply by anybody.
>
> 2009/9/5 hack988 hack988 :
>> I found memcache_get_stats for memcached in some php code.
>> I'm search it at php.net's function list,but it no matched result :(.
>> I had found explain for Memcache::getStats() =A0at this link
>> http://www.php.net/manual/en/function.memcache-getstats.php
>> In this link,tell me that
>> ==================== =====
==================
>> Also you can use memcache_get_stats() function.
>> ==================== =====
==================
>> But I can't find memcache_get_stats function's explain in online manual.
>> Anybody can help me for using this function?Or give an more detail
>> link for this function?
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Who kown this memcache_get_stats function ?

am 06.09.2009 07:05:22 von hack988 hack988

thank "Jonathan" ,"Eddie" :),I think that,i have to read
libmemcached's manual first.
Now I kown one thing:
All function Memcache::xxxx can replace to memcache_xxx,some diffrent
is memcache_xxx has an fixed param 0,it's used for pass a memcached
link resource except memcache_connect function.

2009/9/6 Jonathan Tapicer :
> I think that the documentation for memcache_get_stats should be
> exactly the same as the one given for the method Memcache::getStats
> except that memcache_get_stats should receive as the first parameter a
> reference to the Memcache connection.
>
> Hope that helps.
>
> Jonathan
>
>
> On Sun, Sep 6, 2009 at 1:16 AM, hack988 hack988 wr=
ote:
>> Nobody Kown this?This is my second question in this mail-list :(.I
>> don't kown why it's no reply by anybody.
>>
>> 2009/9/5 hack988 hack988 :
>>> I found memcache_get_stats for memcached in some php code.
>>> I'm search it at php.net's function list,but it no matched result :(.
>>> I had found explain for Memcache::getStats() =A0at this link
>>> http://www.php.net/manual/en/function.memcache-getstats.php
>>> In this link,tell me that
>>> ==================== ===3D=
===================3D
>>> Also you can use memcache_get_stats() function.
>>> ==================== ===3D=
===================3D
>>> But I can't find memcache_get_stats function's explain in online manual=
..
>>> Anybody can help me for using this function?Or give an more detail
>>> link for this function?
>>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Who kown this memcache_get_stats function ?

am 06.09.2009 07:41:39 von Tommy Pham

----- Original Message ----
> From: hack988 hack988
> To: PHP General List
> Sent: Saturday, September 5, 2009 9:16:51 PM
> Subject: Re: [PHP] Who kown this memcache_get_stats function ?
>
> Nobody Kown this?This is my second question in this mail-list :(.I
> don't kown why it's no reply by anybody.
>

You sample on it's usage?

> 2009/9/5 hack988 hack988 :
> > I found memcache_get_stats for memcached in some php code.
> > I'm search it at php.net's function list,but it no matched result :(.
> > I had found explain for Memcache::getStats() at this link
> > http://www.php.net/manual/en/function.memcache-getstats.php
> > In this link,tell me that
> > ==========================================
> > Also you can use memcache_get_stats() function.
> > ==========================================
> > But I can't find memcache_get_stats function's explain in online manual.
> > Anybody can help me for using this function?Or give an more detail
> > link for this function?
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Who kown this memcache_get_stats function ?

am 06.09.2009 07:56:54 von Tommy Pham

----- Original Message ----
> From: Tommy Pham
> To: PHP General List
> Sent: Saturday, September 5, 2009 10:41:39 PM
> Subject: Re: [PHP] Who kown this memcache_get_stats function ?
>
> ----- Original Message ----
> > From: hack988 hack988
> > To: PHP General List
> > Sent: Saturday, September 5, 2009 9:16:51 PM
> > Subject: Re: [PHP] Who kown this memcache_get_stats function ?
> >
> > Nobody Kown this?This is my second question in this mail-list :(.I
> > don't kown why it's no reply by anybody.
> >
>
> You sample on it's usage?
You mean sample on it's usage?

You need to run the daemon first before you can use it. See here:
http://www.danga.com/memcached/

I got that link from: http://us2.php.net/manual/en/intro.memcache.php

>
> > 2009/9/5 hack988 hack988 :
> > > I found memcache_get_stats for memcached in some php code.
> > > I'm search it at php.net's function list,but it no matched result :(.
> > > I had found explain for Memcache::getStats() at this link
> > > http://www.php.net/manual/en/function.memcache-getstats.php
> > > In this link,tell me that
> > > ==========================================
> > > Also you can use memcache_get_stats() function.
> > > ==========================================
> > > But I can't find memcache_get_stats function's explain in online manual.
> > > Anybody can help me for using this function?Or give an more detail
> > > link for this function?
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Who kown this memcache_get_stats function ?

am 06.09.2009 09:59:35 von hack988 hack988

I find some detail manual about memcached procedural style API for
php(for example:memcache_get_stats).But now I found detail about this
API.

2009/9/6 Tommy Pham :
> ----- Original Message ----
>> From: Tommy Pham
>> To: PHP General List
>> Sent: Saturday, September 5, 2009 10:41:39 PM
>> Subject: Re: [PHP] Who kown this memcache_get_stats function ?
>>
>> ----- Original Message ----
>> > From: hack988 hack988
>> > To: PHP General List
>> > Sent: Saturday, September 5, 2009 9:16:51 PM
>> > Subject: Re: [PHP] Who kown this memcache_get_stats function ?
>> >
>> > Nobody Kown this?This is my second question in this mail-list :(.I
>> > don't kown why it's no reply by anybody.
>> >
>>
>> You sample on it's usage?
> You mean sample on it's usage?
>
> You need to run the daemon first before you can use it. =A0See here:
> http://www.danga.com/memcached/
>
> I got that link from: http://us2.php.net/manual/en/intro.memcache.php
>
>>
>> > 2009/9/5 hack988 hack988 :
>> > > I found memcache_get_stats for memcached in some php code.
>> > > I'm search it at php.net's function list,but it no matched result :(=
..
>> > > I had found explain for Memcache::getStats() =A0at this link
>> > > http://www.php.net/manual/en/function.memcache-getstats.php
>> > > In this link,tell me that
>> > > ==================== ===
====================
>> > > Also you can use memcache_get_stats() function.
>> > > ==================== ===
====================
>> > > But I can't find memcache_get_stats function's explain in online man=
ual.
>> > > Anybody can help me for using this function?Or give an more detail
>> > > link for this function?
>> > >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php