expire_cache 0.0.1 copy "expire_cache: ^0.0.1" to clipboard
expire_cache: ^0.0.1 copied to clipboard

outdated

A dart package provides a generic cache that will expire according to time.

expire_cache #

build status

A dart package provides a generic cache that will expire according to time.

If you want to implement SearchDelegate in your app, you will have to cache your search results if you don't want to call your search backend for multiple times on the same query.

See:

https://github.com/flutter/flutter/issues/11655#issuecomment-412413030

https://github.com/flutter/flutter/issues/26759

Because this is related to search, it is valuable to expire the cache after a preiod of time, to give user fresh search result. And this is the goal for this package, to develop an expire by fix time cache.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Development #

Run test #

pub run test test/
10
likes
30
pub points
85%
popularity

Publisher

unverified uploader

A dart package provides a generic cache that will expire according to time.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

clock

More

Packages that depend on expire_cache