All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datorama.oss.timbermill.common.cache.CacheConfig Maven / Gradle / Ivy

There is a newer version: 2.5.3
Show newest version
package com.datorama.oss.timbermill.common.cache;

import com.datorama.oss.timbermill.common.redis.RedisService;

public class CacheConfig {
    private RedisService redisService;
    private int cacheRedisTtlInSeconds;
    private long maximumTasksCacheWeight;
    private long maximumOrphansCacheWeight;

    public CacheConfig(RedisService redisService, int cacheRedisTtlInSeconds, long maximumTasksCacheWeight, long maximumOrphansCacheWeight) {
        this.redisService = redisService;
        this.cacheRedisTtlInSeconds = cacheRedisTtlInSeconds;
        this.maximumTasksCacheWeight = maximumTasksCacheWeight;
        this.maximumOrphansCacheWeight = maximumOrphansCacheWeight;
    }

    RedisService getRedisService() {
        return redisService;
    }

    int getCacheRedisTtlInSeconds() {
        return cacheRedisTtlInSeconds;
    }

    long getMaximumTasksCacheWeight() {
        return maximumTasksCacheWeight;
    }

    long getMaximumOrphansCacheWeight() {
        return maximumOrphansCacheWeight;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy