size method

  1. @override
Future<int> size()
override

Gets the total number of elements in the cache.

Returns the count of stored elements

Implementation

@override
Future<int> size() async {
  return _cache.length;
}