You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current cache storage example is not working, because it assigns data to non existent variable. I have also added cookie persistence, because sessions only lasts for 20minutes. In most cases we would like to maintain cart items for at least a week.
Copy file name to clipboardExpand all lines: README.md
+32-22Lines changed: 32 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -986,43 +986,53 @@ class DBStorage {
986
986
}
987
987
```
988
988
989
-
For example you can also leverage Laravel's Caching (redis, memcached, file, dynamo, etc) using the below example,
989
+
For example you can also leverage Laravel's Caching (redis, memcached, file, dynamo, etc) using the example below. Exmaple also includes cookie persistance, so that cart would be still available for 30 days. Sessions by default persists only 20 minutes.
0 commit comments