RedisAtomicLong entityIdCounter = new RedisAtomicLong(key, redisTemplate.getConnectionFactory()); Long increment = entityIdCounter.getAndIncrement(); return increment;
redis自增操作
猜你喜欢
转载自blog.csdn.net/qq_27986007/article/details/80890443
今日推荐
周排行