count method

  1. @override
FutureOr<DbResult<int>> count(
  1. Access access
)
override

Implementation

@override
FutureOr<DbResult<int>> count(Access access) {
  if (access.query != null) {
    Logger.of(context).warn(context, "query_not_supported",
        title: "Query "
            "not supported with SimpleCacheDataAccess , so its skipped");
  }
  return DbResult<int>(data: data[access.collection]?.length ?? 0);
}