Skip to content

Commit 6d43a76

Browse files
authored
Update README.md
1 parent 3cb0028 commit 6d43a76

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,12 @@ object. For example:
152152
await jsonCache.remove(userId);
153153
}
154154
```
155+
#### JsonCacheMem.init constructor
155156

156-
In addition, `JsonCacheMem` has the `JsonCacheMem.init` constructor whose
157-
purpose is the initialize the cache. Data is deep copied from the initialization
158-
buffer to its internal in-memory cache and to its level2 cache as well.
157+
[JsonCacheMem.init](https://pub.dev/documentation/json_cache/latest/json_cache/JsonCacheMem/JsonCacheMem.init.html)
158+
is the constructor whose purpose is to initialize the cache upon object
159+
instantiation. The data passed to the `init` parameter is deeply copied to both
160+
the internal in-memory cache and the level2 cache.
159161

160162
```dart
161163

0 commit comments

Comments
 (0)