Struct asset_lru::AssetCache [−][src]
Expand description
The Asset cache itself. See crate level documentation for details.
Implementations
pub fn new(
vfs: VfsImpl,
decoder: DecoderImpl,
config: AssetCacheConfig
) -> AssetCache<VfsImpl, DecoderImpl>
Get an item from the cache, decoding if the item isn’t present.
Pin an item, so that it is always present in the cache until explicitly removed.