flutter_mmkv_cache 0.0.2
flutter_mmkv_cache: ^0.0.2

Flutter Android iOS

A cache for Flutter project implement it with mmkv framework.

flutter_mmkv_cache #

pub package

A cache for Flutter project implement it with mmkv framework. and support expires

Getting Started #

dependencies:
  flutter_mmkv_cache: ^0.0.2

Usage #

import 'package:flutter_mmkv_cache/flutter_mmkv_cache.dart';

/// https://github.com/OpenFlutter/mmkv_flutter

/// ExpiredCache

/// add value to cache will expired in 1 hour
final boolRes = await ExpiredCache.add('key', 'value', expired: 1  );

/// get value from cache
final value = await ExpiredCache.get('key');

Licenses #

Original License https://github.com/OpenFlutter/mmkv_flutter

1
likes
100
pub points
30%
popularity

A cache for Flutter project implement it with mmkv framework.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

sqibang@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_mmkv_cache