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
Fast and efficient key/value store with +50MB storage capacity in [most browsers](https://developer.mozilla.org/en-US/docs/Web/API/Cache#Browser_compatibility), expiration and JSON object data-type.
5
+
Fast and tiny key/value store with +50MB storage capacity in [most browsers](https://developer.mozilla.org/en-US/docs/Web/API/Cache#Browser_compatibility), expiration and JSON object data-type.
6
6
7
-
It’s currently available in Chrome >= 40, Firefox >=39 and Opera >= 27.
7
+
Cache API is currently available in Chrome >= 40, Firefox >=39 and Opera >= 27.
8
8
9
9
Safari and Edge recently introduced support for it.
10
10
@@ -33,7 +33,7 @@ if (db.supported) { // Cache API supported by browser
33
33
34
34
// get data from cache
35
35
db.get('key').then(function(json) {
36
-
console.log('json cache data', json);
36
+
console.log('json object', json);
37
37
});
38
38
39
39
// prune expired cache entries
@@ -45,11 +45,10 @@ if (db.supported) { // Cache API supported by browser
45
45
46
46
## Fallback storage
47
47
48
-
To enable a fallback storage for browsers that do not support Cache API, you can define a constructor on global variable `CacheApiDBFallback`. The constructor needs to provide 4 methods: `set`, `get`, `del` and `prune`.
48
+
To enable a fallback storage for browsers that do not yet support Cache API, you can define a constructor on global variable `CacheApiDBFallback`. The constructor needs to provide 4 methods: `set`, `get`, `del` and `prune`.
0 commit comments