call method

Future<T?> call()

Implementation

Future<T?> call() async {
  try {
    return await _strategyBuilder._strategy.applyStrategy<T?>(
        _strategyBuilder._asyncFunc,
        _strategyBuilder.buildSessionKey(_strategyBuilder._key),
        _strategyBuilder._serializerFunc,
        _strategyBuilder._ttlValue,
        _strategyBuilder._cacheStorage);
  } catch (exception) {
    rethrow;
  }
}