Crates.io | asset_lru |
lib.rs | asset_lru |
version | 0.1.3 |
source | src |
created_at | 2021-10-24 18:29:24.120837 |
updated_at | 2021-12-12 22:04:05.357989 |
description | A two-level cache for objects which are bigger in memory than on disk |
homepage | |
repository | https://github.com/ahicks92/asset_lru |
max_upload_size | |
id | 470507 |
size | 40,286 |
Sometimes you want to cache assets from disk or somewhere else expensive. Sometimes those assets are much smaller as compressed/encoded bytes. This crate provides a reasonably smart strategy for such cases, where the encoded bytes are cached in memory as well as the decoded object.
This is very new, but with good code coverage via unit tests.