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
Copy file name to clipboardExpand all lines: README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,20 +74,27 @@ example
74
74
### CachedRequest
75
75
You can give optional settings to the CachedRequest object.
76
76
77
-
* OneCallPerSession - If true, the result will be returned from sessionstorage if it is not expired. Default: false
78
-
* OneCallPerCache - If true, the result will be returned from localstorage if it is not expired. Default: false
79
-
* IgnoreCache - If true, never return a cached result. Default: false
80
-
* ExpireLocalStorage - The time to expire the result in localstorage. Default: 7 days.
81
-
* ExpireSessionStorage - The time to expire the result in sessionstorage. Default: 15 minutes.
82
-
* CachedAndReplace - If true, The cached result will be returned and the cache will be refreshed for the next call. Default: false
83
-
* RetryOnJsonException - If true, If a JSON exception occurs, the cache will be cleared and the request will be retried. Default: true
77
+
***OneCallPerSession** - If true, the result will be returned from sessionstorage if it is not expired. *Default: false*
78
+
***OneCallPerCache** - If true, the result will be returned from localstorage if it is not expired. *Default: false*
79
+
***IgnoreCache** - If true, never return a cached result. *Default: false*
80
+
***ExpireLocalStorage** - The time to expire the result in localstorage. *Default: 7 days.*
81
+
***ExpireSessionStorage** - The time to expire the result in sessionstorage. *Default: 15 minutes.*
82
+
***CachedAndReplace** - If true, The cached result will be returned and the cache will be refreshed for the next call. *Default: false*
83
+
***AlwaysCacheWhenOffline** - If true, the cached result will be returned when offline, except when IgnoreCache is true. *Default: false*
84
+
***RetryOnJsonException** - If true, If a JSON exception occurs, the cache will be cleared and the request will be retried. *Default: true*
84
85
85
86
### Global settings
86
87
87
88
On, for example, MainLayout.razor.cs, you can set the Postfix to be used for all requests. This is useful if you have multiple users using the same app from the same browser.
<Description>Adds a wrapper on top of Blazored.LocalStorage and Blazored.SessionStorage to expire items from localstorage and sessionstorage after a specified time.</Description>
0 commit comments