From 3b8fa4c83820a69485cef7a6752cfacbd08aee16 Mon Sep 17 00:00:00 2001 From: Joel Male Date: Wed, 27 May 2026 21:02:32 +1000 Subject: [PATCH] feat: update cart config with v3 driver options --- config/config.php | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/config/config.php b/config/config.php index cebf9f3..3bbd5b8 100644 --- a/config/config.php +++ b/config/config.php @@ -16,16 +16,30 @@ * --------------------------------------------------------------- * Storage * --------------------------------------------------------------- + * Supported: "session", "database", "redis", "null", "multi" */ 'driver' => 'session', 'storage' => [ - 'session', 'database' => [ - 'model' => '', - 'id' => '', - 'items' => '', + 'model' => '', + 'id' => '', + 'items' => '', 'conditions' => '', ], ], + + /* + * --------------------------------------------------------------- + * Driver-specific options + * --------------------------------------------------------------- + */ + 'drivers' => [ + 'redis' => [ + 'connection' => 'default', + 'ttl' => 60 * 24 * 7, // 7 days in minutes + ], + + 'multi' => ['session', 'database'], + ], ];