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

com.alicp.jetcache.MultiLevelCacheConfig Maven / Gradle / Ivy

The newest version!
package com.alicp.jetcache;

import java.util.ArrayList;
import java.util.List;

/**
 * Created on 2017/5/24.
 *
 * @author huangli
 */
public class MultiLevelCacheConfig extends CacheConfig {
    private List> caches = new ArrayList<>();
    private boolean useExpireOfSubCache;

    @Override
    public MultiLevelCacheConfig clone() {
        MultiLevelCacheConfig copy = (MultiLevelCacheConfig) super.clone();
        if (caches != null) {
            copy.caches = new ArrayList(this.caches);
        }
        return copy;
    }

    public List> getCaches() {
        return caches;
    }

    public void setCaches(List> caches) {
        this.caches = caches;
    }

    public boolean isUseExpireOfSubCache() {
        return useExpireOfSubCache;
    }

    public void setUseExpireOfSubCache(boolean useExpireOfSubCache) {
        this.useExpireOfSubCache = useExpireOfSubCache;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy