ttl_cache 0.1.1 copy "ttl_cache: ^0.1.1" to clipboard
ttl_cache: ^0.1.1 copied to clipboard

A simple key-value store whose entires expire after a user-defined time-to-live (TTL)

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add ttl_cache

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  ttl_cache: ^0.1.1

Alternatively, your editor might support dart 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/ttl_cache.dart';
2
likes
0
points
10.3k
downloads

Publisher

verified publisherbryanoltman.com

Weekly Downloads

A simple key-value store whose entires expire after a user-defined time-to-live (TTL)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

clock

More

Packages that depend on ttl_cache