blob: f7714ce145747b12805a571aa5e68672b8b058d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.fastsearch;
/**
* Helper class for carrying around cache-related
* config parameters to the FastSearcher class.
*
* @author arnej27959
*/
public class CacheParams {
public int cacheMegaBytes = 0;
public double cacheTimeOutSeconds = 0;
public CacheControl cacheControl = null;
public CacheParams(int megabytes, double timeoutseconds) {
this.cacheMegaBytes = megabytes;
this.cacheTimeOutSeconds = timeoutseconds;
}
public CacheParams(CacheControl cacheControl) {
this.cacheControl = cacheControl;
}
}
|