@@ -32,7 +32,6 @@ Rultor.com](https://www.rultor.com/b/dartoos-dev/json_cache)](https://www.rultor
32
32
- [ JsonCacheLocalStorage — LocalStorage] ( #jsoncachelocalstorage )
33
33
- [ JsonCacheSafeLocalStorage — SafeLocalStorage] ( #jsoncachesafelocalstorage )
34
34
- [ JsonCacheFlutterSecureStorage — FlutterSecureStorage] ( #jsoncachefluttersecurestorage )
35
- - [ JsonCacheCrossLocalStorage — CrossLocalStorage] ( #jsoncachecrosslocalstorage )
36
35
- [ JsonCacheHive — Hive] ( #jsoncachehive )
37
36
- [ Unit Test Tips] ( #unit-test-tips )
38
37
- [ Mocking] ( #mocking )
@@ -129,16 +128,16 @@ define it as a **map key** whose associated value is a boolean placeholder value
129
128
set to ` true ` . For example:
130
129
131
130
``` dart
132
- /// Storing a simple text information .
133
- jsonCache.refresh('info', {'an important information': true});
131
+ /// Storing a phrase .
132
+ jsonCache.refresh('info', {'This is very important information. ': true});
134
133
135
134
// later on…
136
135
137
136
// This variable is a Map containing a single key.
138
137
final cachedInfo = await jsonCache.value('info');
139
138
// The key itself is the content of the stored information.
140
139
final info = cachedInfo?.keys.first;
141
- print(info); // 'an important information'
140
+ print(info); // 'This is very important information. '
142
141
143
142
```
144
143
@@ -321,18 +320,6 @@ is an implementation on top of the
321
320
final info = cachedInfo?.keys.first; // 'a secret info'
322
321
```
323
322
324
- ### JsonCacheCrossLocalStorage
325
-
326
- [ JsonCacheLocalCrossStorage] ( https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheCrossLocalStorage-class.html )
327
- is an implementation on top of the
328
- [ cross_local_storage] ( https://pub.dev/packages/cross_local_storage ) package.
329
-
330
- ``` dart
331
- …
332
- final LocalStorageInterface localStorage = await LocalStorage.getInstance();
333
- final JsonCache jsonCache = JsonCacheMem(JsonCacheCrossLocalStorage(localStorage));
334
- ```
335
-
336
323
### JsonCacheHive
337
324
338
325
[ JsonCacheHive] ( https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheHive.html )
0 commit comments