com.github.tomato.core.cache.LocalCache Maven / Gradle / Ivy
package com.github.tomato.core.cache;
import lombok.extern.slf4j.Slf4j;
import java.lang.ref.SoftReference;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.*;
/**
* @author liuxin
* 2021/12/10 9:03 下午
*/
@Slf4j
public class LocalCache {
private static final String EMPTY = "-";
private static final int MAX_CAPACITY = 100000;
private static final int DEFAULT_CAPACITY = 1024;
/**
* 缓存集合
*/
private static SoftReference
© 2015 - 2025 Weber Informatics LLC | Privacy Policy