storeSessionData method

  1. @override
Future<SessionV1?> storeSessionData(
  1. String? correlationId,
  2. String sessionId,
  3. dynamic data
)
override

Updates a session's data.

  • correlation_id (optional) transaction id to trace execution through call chain.
  • data an data to be updated. Return (optional) Future that receives updated session Throws error.

Implementation

@override
Future<SessionV1?> storeSessionData(
    String? correlationId, String sessionId, data) {
  return persistence.updatePartially(correlationId, sessionId,
      AnyValueMap.fromValue({'request_time': DateTime.now(), 'data': data}));
}