note 97502 added to function.memcache-set
| From: | effeessegmailcom at osu1 dot php dot net | Date: | Fri, 23 Apr 2010 08:06:05 +0000 |
| Subject: | note 97502 added to function.memcache-set | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168536@lists.php.net to get a copy of this message | ||
if you want to cache an image created on-the-fly you can do:
ob_start();
imagepng($image);
$memcache->set("my_image", ob_get_contents(), false, $cache_time);
ob_end_clean();
then you could access the chached image as simple variable:
$my_image = $memcache->get("my_image");
so, in short, you have to buffer the output
----
Server IP: 69.147.83.197
Probable Submitter: 195.62.164.225
----
Manual Page -- http://www.php.net/manual/en/function.memcache-set.php
Edit -- https://master.php.net/note/edit/97502
Del: integrated -- https://master.php.net/note/delete/97502/integrated
Del: useless -- https://master.php.net/note/delete/97502/useless
Del: bad code -- https://master.php.net/note/delete/97502/bad+code
Del: spam -- https://master.php.net/note/delete/97502/spam
Del: non-english -- https://master.php.net/note/delete/97502/non-english
Del: in docs -- https://master.php.net/note/delete/97502/in+docs
Del: other reasons-- https://master.php.net/note/delete/97502
Reject -- https://master.php.net/note/reject/97502
Search -- https://master.php.net/manage/user-notes.php