is it possible to store an array in memcached

mike mike503 at gmail.com
Thu Jan 18 20:37:24 UTC 2007


This is basically very basic PHP stuff. :) But yes, you can.

I'm not sure if you even have to serialize it first. Might depend on
the module you use.You can try without first. But otherwise, just
serialize it and it will be a string that you can store. Then
unserialize after you retrieve it.



On 1/18/07, Alan Jay <alanj_sw3 at yahoo.co.uk> wrote:
>
>
>
>
>
> Hi,
>
>
>
> I am doing some tests with the idea to use Memcached to reduce the load on
> HTML servers.  We want to cache articles which are held in an array
> ($article_row) which contains a number of elements $article_row[title] etc I
> have been looking to see if there is syntax to store the entire array in
> memcache so that once brought out the array can be manipulated (as it is
> currently) and displayed as required.
>
>
>
> All suggestions gratefully received.
>
>
>
> Regards
>
> Alan Jay
>
>


More information about the memcached mailing list