title: Laravel cart cache very slow
body: <p>I am using cache to store our carts. As more carts are being added the system is becoming extremely slow when fetching a single cart.</p>
  
  <p>I use the below code to access a single cart and feel it may be that there is lots of information stored under one key in the cache.</p>
  
  <pre><code>$carts = Cache::get("carts");
  
  $cart = $carts[$this-&gt;reference];
  </code></pre>
  
  <p>I understand we could use unique keys such as <strong>carts:uniqueId</strong> but I need to be able to access all of the carts and loop through them so I feel this solution doesn't work.</p>
  
  <p>I'd appreciate any advice on how I can solve this issue.</p>
  
  <p>Edit:
  As per <strong>ka_lin</strong> comment, I need to loop through the carts and bookings so that I can check if the booking date is still available. If it is no longer available I need to clear the date selected and also emit an event to alert the user.</p>
  
  <p>I would prefer to keep the data on the server side as this is built behind an api in order to make it easier for integration for partners.</p>