Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bang88/mmkv_flutter_cache

Cache for flutter implement it with `mmkv` framework
https://github.com/bang88/mmkv_flutter_cache

cache dart flutter mmkv

Last synced: 8 days ago
JSON representation

Cache for flutter implement it with `mmkv` framework

Awesome Lists containing this project

README

        

# mmkv_flutter_cache

[![pub package](https://img.shields.io/pub/v/mmkv_flutter_cache.svg)](https://pub.dartlang.org/packages/mmkv_flutter_cache)

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

## Getting Started

```yaml
dependencies:
mmkv_flutter_cache: ^0.0.4
```

### Usage

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

```