지대한 2 years ago
parent
commit
2c1882f5b4
  1. 3
      src/main/java/com/palnet/comn/utils/ControlCacheUtils.java

3
src/main/java/com/palnet/comn/utils/ControlCacheUtils.java

@ -9,11 +9,12 @@ import org.springframework.stereotype.Component;
import javax.naming.ldap.Control;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@Component
public class ControlCacheUtils {
private Logger logger = LoggerFactory.getLogger(getClass());
private static Map<String, ControlCacheModel> controls = new HashMap<>();
private static Map<String, ControlCacheModel> controls = new ConcurrentHashMap<>();
private Integer removeTime = 1000 * 10; // 10초
public static void setControl(String objectId, ControlCacheModel control) {

Loading…
Cancel
Save