Disk caches
Cover cache
Helper function to write (rename) a file to the cover cache. The source file must be on the same filesystem as the cache directory (default: /var/cache/mympd/cover
).
Parameters:
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
src | string | Source file to rename. |
uri | string | Uri to write the cover cache for. |
Returns:
FIELD | TYPE | DESCRIPTION |
---|---|---|
rc | integer | 0 = success, 1 = error |
name | string | written filename |
Lyrics cache
Helper function to write a entry (file) to the lyrics cache (default: /var/cache/mympd/lyrics
).
Parameters:
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
str | string | String to save (it must be a valid lyrics json string) |
uri | string | Uri to write the lyrics cache for. |
Returns:
FIELD | TYPE | DESCRIPTION |
---|---|---|
rc | integer | 0 = success, 1 = error |
name | string | written filename |
Thumbs cache
Helper function to write (rename) a file to the thumbs cache. The source file must be on the same filesystem as the cache directory (default: /var/cache/mympd/thumbs
).
Parameters:
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
src | string | Source file to rename. |
value | string | Tag value to write the thumbs cache for. |
Returns:
FIELD | TYPE | DESCRIPTION |
---|---|---|
rc | integer | 0 = success, 1 = error |
name | string | written filename |
Temporary files
Generates a random tmp filename for the misc cache (default: /var/cache/mympd/misc/XXXXXXXXXX
).
Modification time
Updates the timestamp of a file.