note 102447 added to memcache.getextendedstats
| From: | uscatu at gmail dot com | Date: | Tue, 15 Feb 2011 09:30:47 +0000 |
| Subject: | note 102447 added to memcache.getextendedstats | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177003@lists.php.net to get a copy of this message | ||
The previous example doesn't work quite well.
You should change the following line:
$cdump = $memcache->getExtendedStats('cachedump',(int)$slabId);
to
$cdump = $memcache->getExtendedStats('cachedump',(int)$slabId, 1000000);
... and it will work OK in most cases.
When calling cachedump there is a default limit of 100 items.
----
Server IP: 69.147.83.197
Probable Submitter: 91.206.37.14
----
Manual Page -- http://www.php.net/manual/en/memcache.getextendedstats.php
Edit -- https://master.php.net/note/edit/102447
Del: integrated -- https://master.php.net/note/delete/102447/integrated
Del: useless -- https://master.php.net/note/delete/102447/useless
Del: bad code -- https://master.php.net/note/delete/102447/bad+code
Del: spam -- https://master.php.net/note/delete/102447/spam
Del: non-english -- https://master.php.net/note/delete/102447/non-english
Del: in docs -- https://master.php.net/note/delete/102447/in+docs
Del: other reasons-- https://master.php.net/note/delete/102447
Reject -- https://master.php.net/note/reject/102447
Search -- https://master.php.net/manage/user-notes.php