https://github.com/s5-dev/cached_s5_manager
https://github.com/s5-dev/cached_s5_manager
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/s5-dev/cached_s5_manager
- Owner: s5-dev
- License: eupl-1.2
- Created: 2024-08-05T15:37:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-08T16:07:22.000Z (almost 2 years ago)
- Last Synced: 2025-07-19T18:14:38.566Z (11 months ago)
- Language: Dart
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
This is a simple cache manager for `cached_s5` libraries.
### Usage
This is a library built on [s5](https://pub.dev/packages/s5). See there for more details.
Basic Usage:
```dart
CachedS5Manager cacheManager = CachedS5Manager(s5: s5);
final Uint8List bytes = await cacheManager.getBytesFromCID("CID String"); // fetches & caches
cacheManager.clear(); // WARNING: this deletes all locally cached assets
```
### Acknowledgement
This work is supported by a [Sia Foundation](https://sia.tech/) grant