navidrome/utils/cache
tomleb 257ccc5f43
Allow configuring cache folder (#2357)
* Set all clients to dev_download for make get-music

* Use multiple TranscodingCache instances in tests

This fixes flaky tests. The issue is that the TranscodingCache object
was being reused in tests from media_stream_Internal_test.go and
media_stream_test.go. If tests from the former was run first, the cache
would be filled up, so that when running tests from the latter, the `NON
seekable` test would fail.

* Allow configuring cache folder

This commit introduces a new configuration option to configure the cache
folder. This allows the cache to be in a separate folder such as
/var/cache/navidrome on Linux distributions.

* Fix tests

* Removed unused test setup code

---------

Co-authored-by: Deluan <deluan@deluan.com>
Co-authored-by: Deluan <deluan@navidrome.org>
2023-06-02 17:14:11 -04:00
..
cache_suite_test.go Rename log.LevelCritical to log.LevelFatal 2022-12-21 14:53:36 -05:00
file_caches.go Allow configuring cache folder (#2357) 2023-06-02 17:14:11 -04:00
file_caches_test.go Allow configuring cache folder (#2357) 2023-06-02 17:14:11 -04:00
file_haunter.go Add logs to cache hunter 2023-02-06 10:41:33 -05:00
file_hauter_test.go Add logs to cache hunter 2023-02-06 10:41:33 -05:00
spread_fs.go Add nilerr linter 2022-09-30 20:18:14 -04:00
spread_fs_test.go Upgrade Ginkgo to V2 2022-07-26 16:53:17 -04:00