get<T> static method

Future<T?> get<T>(
  1. String key
)

Retrieves an item from the cache.

Implementation

static Future<T?> get<T>(String key) async {
  final value = await _driver.get(key);
  if (value == null) return null;
  return value as T;
}