$content =
['cart' =>
$cart, 'rule_ids' => \
json_decode((string) $row['rule_ids'
], true, 512, \JSON_THROW_ON_ERROR
)];
$content =
$this->compress ? CacheValueCompressor::
compress($content) : \
serialize($content);
$values[$key] =
$row['token'
];
$value = \
serialize([ 'compressed' =>
$this->compress,
'content' =>
$content,
// used for migration
'token' =>
$row['token'
],
'customer_id' =>
$row['customer_id'
] ? Uuid::
fromBytesToHex($row['customer_id'
]) : null,
'rule_ids' => \
json_decode((string) $row['rule_ids'
], true, 512, \JSON_THROW_ON_ERROR
),
'currency_id' => Uuid::
fromBytesToHex($row['currency_id'
]),
'shipping_method_id' => Uuid::
fromBytesToHex($row['shipping_method_id'
]),
'payment_method_id' => Uuid::
fromBytesToHex($row['payment_method_id'
]),
'country_id' => Uuid::
fromBytesToHex($row['country_id'
]),
'sales_channel_id' => Uuid::
fromBytesToHex($row['sales_channel_id'
]),
'price' =>
$row['price'
],
'line_item_count' =>
$row['line_item_count'
],
'created_at' =>
$row['created_at'
],
]);