get method

  1. @override
Future<CacheObject?> get(
  1. String key
)
override

Gets a CacheObject by key

Implementation

@override
Future<CacheObject?> get(String key) async {
  return _cacheObjects.values.firstWhereOrNull(
    (element) => element.key == key,
  );
}