setValue method Null safety

void setValue(
  1. dynamic value,
  2. int timeout
)

Sets a new value and extends its expiration.

  • value a new cached value.
  • timeout a expiration timeout in milliseconds.