Skip to content

Files

Latest commit

b88eb1d · Aug 7, 2024

History

History
17 lines (11 loc) · 502 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 502 Bytes

This is a simple cache manager for cached_s5 libraries.

Usage

This is a library built on s5. See there for more details.

Basic Usage:

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 grant