|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-25 12:59 UTC] andrei@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Mar 18 19:00:01 2026 UTC |
Description: ------------ Requesting some sort of feature to combine PHP's print/echo with pecl-memcached's get (and associated functions) so as to avoid the need to store data in PHP's memory which is not going to be processed by code other than to output. The function should perhaps return false to indicate that the key did not exist, and a numeric length of printed data otherwise. Could be coupled with a function to get just the data length, and another returning just a boolean to indicate existence of a key at request time. However, not sure if those need to go into a new feature request. Reproduce code: --------------- $m = new Memcached(); $m->addServer('192.168.1.204',11211); $len = $m->getPrint('key'); if ($len === false) { ... }