redisTemplate進行自增操作例子

代碼 String key = "redisAtomicLong:getAndIncrement:add"; RedisAtomicLong entityIdCounter = new RedisAtomicLong(key, redisTemplate.getConnectionFactory()); Long increment = entityIdCounter.getAndIncremen
相關文章
相關標籤/搜索