api_client_cache 1.0.0 copy "api_client_cache: ^1.0.0" to clipboard
api_client_cache: ^1.0.0 copied to clipboard

A simple HTTP cache for api_client

api_client #

Build Status

A HTTP Cache transporter for api_client

How to use #

import 'package:api_client/api_client.dart';
import 'package:api_client_cache/api_client_cache.dart';

final Spec spec = Spec(
        transporter: HttpCacheTransporter(expiresIn: 15000)
        // other configuration
      );

Arguments #

  • onlyGET apply caching for GET request only (default is true)
  • expiresIn set time to live (in milliseconds) for cache entry (default is 15000)
  • transporter set custom transporter rather than Transporter.factory()
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A simple HTTP cache for api_client

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

api_client, crypto

More

Packages that depend on api_client_cache