Ok I think I found the answer, I will need igbinary.

http://stackoverflow.com/questions/6830260/how-to-enable-igbinary-with-memcached-installed-first


On Thu, Nov 28, 2013 at 5:00 PM, Radek Zajkowski <[email protected]> wrote:

> Hi all,
>
> I have some very generic code that creates an image, lets user look at it
> and when they're happy with it they can save it. On disk the image is
> ~180K, but when saved into memcached it shows up as ~900K.Any ideas on how
> to make this smaller or how to output ImageMagick content so it would be
> smaller?
>
> $image = new Imagick();
> $image->readImageBlob($gsImageSave);
>
> //do bunch of stuff here that only Imagick can do and then try to store in
> memcached
>
> $m = new \Memcached();
> $m->addServer($this->memcache_server_host, $this->memcache_server_port);
> $m->setOption(\Memcached::OPT_COMPRESSION, true);
> $m->set("my_image", $image->getImageBlob(), time() + 600);
>
> Thank you,
>
> Radek.
>
>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "memcached" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/memcached/Z9HJEeQm7Zw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to