summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/fastsearch/CacheParams.java
blob: cad055d35128591c665da884fff8d4e577f7345b (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
26
// Copyright 2017 Yahoo Holdings. 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;
    }

}