Expand description
A cache for files.
Structsยง
- File
Cache ๐ - A file cache manages files on local store and evict files based on size.
- File
Cache ๐Inner - Inner struct for FileCache that can be used in spawned tasks.
- Index
Key - Key of file cache index.
- Index
Value ๐ - An entity that describes the file in the file cache.
Enumsยง
- File
Type - 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ยง
- File
Cache ๐Ref