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

On-Memory cache support.

Github Actions

Features #

On-Memory cacheオブジェクトを提供する.

Cacheはあくまで時間のかかる処理の結果を保持する程度の利用を想定されるため、 hashやequalsを実行すると例外を投げる.

Usage #

final cache = Cache<int>();
final value = await cache.getAsync(() async {
    return heavyFunction();
});
0
likes
120
points
505
downloads

Publisher

verified publisherviviware.com

Weekly Downloads

On-Memory cache support.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, semaphore

More

Packages that depend on cache_value