File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 …
You can’t perform that action at this time.
0 commit comments