Skip to content

Commit 00d8fff

Browse files
authored
doc(README): minor changes
1 parent 73ad513 commit 00d8fff

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Rultor.com](https://www.rultor.com/b/dartoos-dev/json_cache)](https://www.rultor
3030
- [JsonCacheEncPrefs — EncryptedSharedPreferences](#jsoncacheencprefs)
3131
- [JsonCacheSecStorage — FlutterSecureStorage](#jsoncachesecstorage)
3232
- [JsonCacheLocalStorage — LocalStorage](#jsoncachelocalstorage)
33-
- [JsonCacheHive — Hive](#jsoncachehive)
3433
- [JsonCacheCrossLocalStorage — CrossLocalStorage](#jsoncachecrosslocalstorage)
34+
- [JsonCacheHive — Hive](#jsoncachehive)
3535
- [Unit Test Tips](#unit-test-tips)
3636
- [Mocking](#mocking)
3737
- [Fake Implementations](#fake-implementations)
@@ -272,6 +272,18 @@ is an implementation on top of the
272272
273273
```
274274

275+
### JsonCacheCrossLocalStorage
276+
277+
[JsonCacheLocalCrossStorage](https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheCrossLocalStorage-class.html)
278+
is an implementation on top of the
279+
[cross_local_storage](https://pub.dev/packages/cross_local_storage) package.
280+
281+
```dart
282+
283+
final LocalStorageInterface prefs = await LocalStorage.getInstance();
284+
final JsonCache jsonCache = JsonCacheMem(JsonCacheCrossLocalStorage(prefs));
285+
```
286+
275287
### JsonCacheHive
276288

277289
[JsonCacheHive](https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheHive.html)
@@ -285,19 +297,6 @@ package.
285297
final JsonCache hiveCache = JsonCacheMem(JsonCacheHive(box));
286298
287299
```
288-
289-
### JsonCacheCrossLocalStorage
290-
291-
[JsonCacheLocalCrossStorage](https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheCrossLocalStorage-class.html)
292-
is an implementation on top of the
293-
[cross_local_storage](https://pub.dev/packages/cross_local_storage) package.
294-
295-
```dart
296-
297-
final LocalStorageInterface prefs = await LocalStorage.getInstance();
298-
final JsonCache jsonCache = JsonCacheMem(JsonCacheCrossLocalStorage(prefs));
299-
```
300-
301300
## Unit Test Tips
302301

303302
This package has been designed with unit testing in mind. This is one of the

0 commit comments

Comments
 (0)