2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-29 08:14:03 +00:00
restic/internal/cache
Michael Eischer ce902aac67 cache: Just try to open cache entry without calling stat first
Instead of first checking whether a file is in the repository cache and
then opening it, we just can open the file. This saves one stat call. If
the file is in the cache, everything is fine and otherwise the code
follows its normal fallback path.
2022-08-19 20:59:06 +02:00
..
backend_test.go Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00
backend.go cache: Just try to open cache entry without calling stat first 2022-08-19 20:59:06 +02:00
cache.go cache: Don't Lstat before creating the tag file 2022-05-10 18:52:39 +02:00
dir_test.go Add more error handling 2021-01-30 20:19:47 +01:00
dir.go Honor RESTIC_CACHE_DIR environment variable 2021-10-10 16:00:02 +02:00
file_test.go Save cached files to a temporary location first 2021-08-04 22:02:42 +02:00
file.go cache: Just try to open cache entry without calling stat first 2022-08-19 20:59:06 +02:00
testing.go Add cache 2017-09-24 21:54:53 +02:00