retrieve abstract method

Future retrieve(
  1. String? correlationId,
  2. String key
)

Retrieves cached value from the cache using its key. If value is missing in the cache or expired it returns null.

  • correlationId (optional) transaction id to trace execution through call chain.
  • key a unique value key. Return Future that receives cached value Throws error.

Implementation

Future<dynamic> retrieve(String? correlationId, String key);