seaweedfs/weed/util/chunk_cache
Eugeniy E. Mikhailov dab0bb8097
Feature limit caching to prescribed number of bytes per file (#6009)
* feature: we can check if a fileId is already in the cache

We using this to protect cache from adding the same needle to
the cache over and over.

* fuse mount: Do not start dowloader if needle is already in the cache

* added maxFilePartSizeInCache property to ChunkCache

If file very large only first maxFilePartSizeInCache bytes
are going to be put to the cache (subject to the needle size
constrains).

* feature: for large files put in cache no more than prescribed number of bytes

Before this patch only the first needle of a large file was intended for
caching. This patch uses maximum prescribed amount of bytes to be put in
cache. This allows to bypass default 2MB maximum for a file part stored
in the cache.

* added dummy mock methods to satisfy interfaces of ChunkCache
2024-09-11 21:09:20 -07:00
..
chunk_cache_in_memory.go chunk cache adds function ReadChunkAt 2022-02-25 21:55:04 -08:00
chunk_cache_on_disk_test.go Revert "weed mount, weed dav add option to force cache" 2024-09-04 01:38:29 -07:00
chunk_cache_on_disk.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
chunk_cache.go Feature limit caching to prescribed number of bytes per file (#6009) 2024-09-11 21:09:20 -07:00
on_disk_cache_layer.go Revert "Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs"" 2023-09-25 09:35:16 -07:00