mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Add descriptor type for larger persistent caches.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
944f165202
commit
7b22e7930a
1 file changed
+11
@@ -153,6 +153,17 @@ pub(crate) static SEQUENTIAL_SMALL: Descriptor = Descriptor {
|
||||
..SEQUENTIAL
|
||||
};
|
||||
|
||||
/// Descriptor for large persistent caches with random updates. Oldest entries
|
||||
/// are deleted after limit_size reached.
|
||||
pub(crate) static RANDOM_CACHE: Descriptor = Descriptor {
|
||||
compaction: CompactionStyle::Fifo,
|
||||
cache_disp: CacheDisp::Unique,
|
||||
limit_size: 1024 * 1024 * 1024 * 2,
|
||||
ttl: 60 * 60 * 24 * 180,
|
||||
file_shape: 2,
|
||||
..RANDOM
|
||||
};
|
||||
|
||||
/// Descriptor for small persistent caches with random updates. Oldest entries
|
||||
/// are deleted after limit_size reached.
|
||||
pub(crate) static RANDOM_SMALL_CACHE: Descriptor = Descriptor {
|
||||
|
||||
Reference in new issue
Block a user