【Redis】基于zset实现滑动窗口


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;

/**
 * 根据时间滑动窗口计数
 * @author haoyang
 */

你可能感兴趣的:(Java,#,redis,redis,缓存,java)