clean_cache

Creator: coderz1093

Last updated:

0 purchases

clean_cache Image
clean_cache Images

Languages

Categories

Add to Cart

Description:

clean cache

Designed for use in projects that follow The Clean Architecture pattern,
clean_cache is a simple cache abstraction allowing you to easily mock it for unit tests.
Features #
Several prebuilt cache are included:

Memory cache
Hive cache
Hybrid cache

If you need something specific, you just need to implement the LocalCache abstraction.
Getting started #
Just install the package to get started.
flutter pub add clean_cache
copied to clipboard
Usage #
import 'package:clean_cache/cache/memory_cache.dart';

// This stores an ExampleModel with a String key.
final cache = MemoryCache<String, ExampleModel>();
final model = ExampleModel();
await cache.write(model.id, model);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.