Add descriptor type for larger persistent caches.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
944f165202
commit
7b22e7930a
1 changed files with 11 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue