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

com.kould.manager.InterprocessCacheManager Maven / Gradle / Ivy

package com.kould.manager;

import com.kould.properties.DaoProperties;
import com.kould.properties.InterprocessCacheProperties;

import java.util.concurrent.ExecutionException;

/*
进程间缓存,用于减少冗余的网络IO,提高单次响应时间
 */
public abstract class InterprocessCacheManager {

    protected DaoProperties daoProperties;

    protected InterprocessCacheProperties interprocessCacheProperties ;

    public InterprocessCacheManager(DaoProperties daoProperties, InterprocessCacheProperties interprocessCacheProperties) {
        this.daoProperties = daoProperties;
        this.interprocessCacheProperties = interprocessCacheProperties;
    }
    public abstract Object get(String key, String type) throws ExecutionException;
    public abstract void clear(String type);
    public abstract void put(String key, Object result, String type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy