Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 memcached 中缓存图像。测试了这段代码:
ob_start(); $image = imagecreatefrompng(ROOT_DIR."/img/welcome.png"); imagepng($image); $memcache->set("my_image", ob_get_contents(), false, 3600); ob_end_clean();
但不起作用。有什么建议么?