temp_cache 0.0.2-nullsafety.0 copy "temp_cache: ^0.0.2-nullsafety.0" to clipboard
temp_cache: ^0.0.2-nullsafety.0 copied to clipboard

outdated

A package which provides functionality to store objects inside a temporary cache inside memory

temp_cache #

A package which provides functionality to store objects inside a temporary cache within memory

Getting Started #

Store objects:

var cache = Cache<TestItem>();
final item1 = TestItem('1');
final item2 = TestItem('2');
final item3 = TestItem('3');

cache.put(item1.id, item1);
cache.put(item2.id, item2);
cache.put(item3.id, item3);

// or

final List<TestItem> items = [item1, item2, item3];
cache.putMany(items, (item) => item.id);

Get objects:

cache.get('1')

// or

cache.getAll()

Buy me a Coffee if you like this package #

paypal

1
likes
0
points
204
downloads

Publisher

verified publisherzooper.dev

Weekly Downloads

A package which provides functionality to store objects inside a temporary cache inside memory

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, flutter

More

Packages that depend on temp_cache