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

https://github.com/s5-dev/cached_s5_manager


https://github.com/s5-dev/cached_s5_manager

Last synced: 10 months ago
JSON representation

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