dynamic_cache 0.0.6 copy "dynamic_cache: ^0.0.6" to clipboard
dynamic_cache: ^0.0.6 copied to clipboard

A complete in-memory cache in Flutter. Inspired by IMemoryCache (Microsoft.Extensions.Caching.Memory.) from C# .

Dynamic Cache #

A complete in-memory cache in Flutter. It works either by retrieving the instance from anywhere in your business logic, or by context through a provider and an extension.

Features #

  • Wrapper DynamicCacheProvider is for the injection of the cache on context for use in the three.
  • Dynamic Cache can be used both directly with widgets, but preferably in business rule, with a suitable state manager.
  • Automatic cache cleaning, with the possibility of setting a time expiration for each item.
  • DynamicCache can be used as a singleton, or as a class instance.
  • Control notify listeners when the cache is updated.

Usage DynamicCache #


First, you need to import the package:

import 'package:dynamic_cache/dynamic_cache.dart';

For complete example, check the example section.

3
likes
160
pub points
22%
popularity

Publisher

verified publisherrdrgbaioco.dev

A complete in-memory cache in Flutter. Inspired by IMemoryCache (Microsoft.Extensions.Caching.Memory.) from C# .

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dynamic_cache