如果可能的话,您如何在 memcached 中存储二进制图像数据?

How can you, if even possible, Store binary image data within memcached?

我正在开发一个存储二进制图像数据的程序,我决定使用 memcached 作为缓存层。我实际上并没有收到任何错误,但是当我将二进制数据存储在其中时,它并不能正常工作。This is what the output of the array is , Look closely at where it says Profile_Pic, the value is just one character

        This is the code I use to update the memcaches array. Note that storing regular 
        values in memcached works fine.
        <?php $unit_array=$this->Memc->getByKey("Unit_Array_Casting_Server",$unit_name);
        $unit_array[$uuid][$keyname]=$keyvalue;
        $this->Memc->setByKey("Unit_Array_Casting_Server",$unit_name,$unit_array); ?>

没关系,事实证明问题是内部代码问题,我将 $key 值变量作为数组输入,但事实并非如此。