Module file_cache

Module file_cache 

Source
Expand description

A cache for files.

Structsยง

FileCache ๐Ÿ”’
A file cache manages files on local store and evict files based on size.
FileCacheInner ๐Ÿ”’
Inner struct for FileCache that can be used in spawned tasks.
IndexKey
Key of file cache index.
IndexValue ๐Ÿ”’
An entity that describes the file in the file cache.

Enumsยง

FileType
Type of the file.

Constantsยง

DEFAULT_INDEX_CACHE_PERCENT ๐Ÿ”’
Default percentage for index (puffin) cache (20% of total capacity).
FILE_DIR ๐Ÿ”’
Subdirectory of cached files for write.
MIN_CACHE_CAPACITY ๐Ÿ”’
Minimum capacity for each cache (512MB).

Functionsยง

cache_file_path ๐Ÿ”’
Generates the path to the cached file.
parse_index_key ๐Ÿ”’
Parse index key from the file name.

Type Aliasesยง

FileCacheRef ๐Ÿ”’