Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
can u store array in to the cache
  • i am createing add to cart app for shopping, i have decided to use cache to do so , but i need to store multiple value i to the cart so i can i store array in to the array like normaly we do in variable ,
    and why is the best way  to create add to cart , is it by cache, or cookies, or session,
    right now i am trying to create car by

    Cache::set('test', array('count'=>1,

                'product'=>array('productnmae'=>'asd'),

                        'prd'=>1), 3600 * 3);
  • You can store anything in the cache.

    Only if you want to store objects, you have to check the PHP docs for the limitations when it comes to serializing on object.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion