set<T> method
Future<T>
set<T>(
- String path,
- String? name,
- T item, {
- CacheToJson<
T> ? toJson, - Duration? maxAge,
- bool isPersistent = false,
Implementation
Future<T> set<T>(
String path,
String? name,
T item, {
CacheToJson<T>? toJson,
Duration? maxAge,
bool isPersistent = false,
}) =>
_documentRef(path, name, isPersistent: isPersistent)
.set(_zip(item, maxAge, toJson))
.then((value) => item);