Class artifact_cache

Class Documentation

class legion::core::filesystem::artifact_cache

Manages caches for mem_filesystem_provider.


This class is not exported! This should only be used by library components.

Public Functions

void gc()

Manually calls garbage collection.

Public Static Functions

static std::shared_ptr<byte_vec> get_cache(std::string_view identifier, std::size_t size_hint = 0)

Queries a cache for a mem_filesystem_provider.


shared_ptr to a byte_vec Which should be used as the cache. mem_filesystem_provider::build_memory_representation

  • identifier: Provider identifier.

  • size_hint: A hint to how big the cache is going to be.

static artifact_cache &get_driver()

Gets the singleton driver for the artifact_cache.