getDefaultDriverName method

  1. @override
String getDefaultDriverName()
override

Gets the name of the current default driver.

Implementation

@override
String getDefaultDriverName() {
  if (_drivers.isEmpty) {
    throw CacheException('No cache drivers registered');
  }
  return _drivers.entries.firstWhere((e) => e.value == _defaultDriver).key;
}