[−][src]Crate rocket_file_cache
Modules
named_in_memory_file |
Structs
Cache | The cache holds a number of files whose bytes fit into its size_limit. The cache acts as a proxy to the filesystem, returning cached files if they are in the cache, or reading a file directly from the filesystem if the file is not in the cache. |
CacheBuilder | A builder for Caches. |
Enums
CacheBuildError | Error types that can be encountered when a cache is built. |
CachedFile | Wrapper around data that can represent a file - either in memory (cache), or on disk. |
Functions
access_priority_function | This priority function will value files in the cache based solely on the number of times the file was accessed. |
default_priority_function | The default priority function used for determining if a file should be in the cache. |
normal_priority_function | Priority is calculated as the size times the access count. |
small_files_access_priority_function | Favor small files with respect to the number of times file was accessed. |
small_files_priority_function | Favor small files without respect to the number of times file was accessed. |