mmkv_flutter_cache

pub package

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');

Libraries

mmkv_flutter_cache