Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bang88/flutter_mmkv_cache
A cache for Flutter project implement it with mmkv framework. and support expires
https://github.com/bang88/flutter_mmkv_cache
Last synced: 8 days ago
JSON representation
A cache for Flutter project implement it with mmkv framework. and support expires
- Host: GitHub
- URL: https://github.com/bang88/flutter_mmkv_cache
- Owner: BANG88
- License: mit
- Created: 2019-01-20T03:53:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T06:55:53.000Z (about 6 years ago)
- Last Synced: 2025-01-04T15:16:35.678Z (22 days ago)
- Language: Dart
- Size: 64.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_mmkv_cache
[![pub package](https://img.shields.io/pub/v/flutter_mmkv_cache.svg)](https://pub.dartlang.org/packages/flutter_mmkv_cache)
> A cache for Flutter project implement it with mmkv framework. and support expires
## Getting Started
```yaml
dependencies:
flutter_mmkv_cache: ^0.0.2
```### Usage
```dart
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