ttl_cache_service 1.0.1
ttl_cache_service: ^1.0.1 copied to clipboard
High-performance in-memory TTL cache with latency-aware eviction (least fetch time evicted first), stampede protection, and func.getTtlCache() extensions.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ttl_cache_serviceWith Flutter:
$ flutter pub add ttl_cache_serviceThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
ttl_cache_service: ^1.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ttl_cache_service/ttl_cache_service.dart';