import '../../../request_cache.dart';
import 'get_breakers.dart';
import 'get_breakers_response.dart';

class GetBreakersCache extends SimpleCache<GetBreakersResponse> {
  GetBreakersCache({super.onUpdate, super.renew, super.onError})
    : super(
        cacheTime: RequestCache.cacheMinute,
        loader: () => GetBreakers().run(),
        fromJson: GetBreakersResponse.fromJson,
      ) {
    start('breakers');
  }
}
