Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bang88/mmkv_flutter_cache
- Owner: BANG88
- License: mit
- Created: 2019-01-07T02:13:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T06:22:48.000Z (about 6 years ago)
- Last Synced: 2025-01-04T15:16:37.188Z (22 days ago)
- Topics: cache, dart, flutter, mmkv
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/mmkv_flutter_cache
- Size: 167 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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');```