mmkv_flutter_cache 0.0.4 mmkv_flutter_cache: ^0.0.4 copied to clipboard
A cache for Flutter project implement it with mmkv framework.
mmkv_flutter_cache #
A cache for Flutter project implement it with mmkv framework. and support expires
Getting Started #
dependencies:
mmkv_flutter_cache: ^0.0.4
Usage #
import 'package:mmkv_flutter_cache/mmkv_flutter_cache.dart';
/// add value to cache will expired in 1 hour
final boolRes = await Cache.add('key', 'value', expired: 1 );
/// get value from cache
final value = await Cache.get('key');