store method Null safety

Future store(
  1. String? correlationId,
  2. String key,
  3. dynamic value,
  4. int timeout
)

Stores value in the cache with expiration time.

  • correlationId (optional) transaction id to trace execution through call chain.
  • key a unique value key.
  • value a value to store.
  • timeout expiration timeout in milliseconds. Return Future that receives an null for success Throws error